upgrade to SDK 0.15.5 (frontend + backend) #136
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Main | |
| on: | |
| push: | |
| branches: [ main ] | |
| # Always run on commits | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUSTFLAGS: -D warnings | |
| jobs: | |
| backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout' | |
| uses: actions/checkout@v3 | |
| - name: 'Install Rust toolchain' | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: 'Install Protoc' | |
| uses: arduino/setup-protoc@v3 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: 'Install linera-storage-service' | |
| uses: taiki-e/cache-cargo-install-action@v2 | |
| with: | |
| tool: [email protected] | |
| - name: 'Install linera-service' | |
| uses: taiki-e/cache-cargo-install-action@v2 | |
| with: | |
| tool: [email protected] | |
| - run: | | |
| ln -sf /opt/hostedtoolcache/linera-storage-service/bin/linera-storage-server /opt/hostedtoolcache/linera-service/bin/ | |
| - name: Run clippy | |
| run: cargo clippy --locked --all-targets --all-features | |
| - name: 'Compile Wasm app' | |
| run: cargo build --locked --release --target wasm32-unknown-unknown | |
| - name: 'Compile' | |
| run: cargo build --locked | |
| - name: 'Run tests' | |
| run: cargo test --locked | |
| - name: 'Generate puzzles' | |
| run: cargo run --locked --bin gol -- create-puzzles | |
| - name: 'Run code in README including code-generation' | |
| run: linera extract-script-from-markdown backend/README.md | bash -ex | |
| - name: 'Verify that code-generated files are unchanged' | |
| run: git diff --exit-code | |
| lint-cargo-fmt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: 'Put lint toolchain file in place' | |
| run: ln -sf toolchains/nightly/rust-toolchain.toml | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: 'Check formatting' | |
| run: cargo fmt -- --check |