Update Rust to v1.97.1 #423
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: build | |
| on: [push, pull_request] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache cargo registry | |
| uses: actions/cache@v4 | |
| continue-on-error: false | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os}}-cargo- | |
| - name: Cache build artifacts | |
| uses: actions/cache@v4 | |
| continue-on-error: true | |
| with: | |
| path: target | |
| key: ${{ runner.os }}-cargo-target-${{ hashFiles('Cargo.lock', 'rust-toolchain.toml') }} | |
| - name: Cache downloaded toolchain(s) | |
| uses: actions/cache@v4 | |
| continue-on-error: true | |
| with: | |
| path: ~/.rustup | |
| key: ${{ runner.os }}-rustup-${{ hashFiles('rust-toolchain.toml') }} | |
| - name: Build | |
| run: cargo build | |
| - name: Package | |
| run: cargo xtask package --out file.zip --board lpc55xpresso |