Update nvme-mi-dev #30
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
| # This is a wrapper around ci/runtests.sh | |
| # ci/runtests.sh is intended to be usable locally without github. | |
| name: ci | |
| on: | |
| pull_request: | |
| push: | |
| workflow_dispatch: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| ci: | |
| strategy: | |
| matrix: | |
| # no_override will use the version from rust-toolchain.toml | |
| rust_version: [no_override, nightly] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache Rust files | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/ | |
| target/ci/ | |
| # Save a unique cache each time | |
| # (https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache) | |
| key: rust-${{ matrix.rust_version }}-${{ github.run_id }} | |
| # Load from the most recent match | |
| restore-keys: | | |
| rust-${{ matrix.rust_version }} | |
| - name: Rustup ${{ matrix.rust_version }} | |
| if: ${{ matrix.rust_version != 'no_override' }} | |
| run: | | |
| rustup override set ${{ matrix.rust_version }} | |
| - name: Build and test ${{ matrix.rust_version }} | |
| run: ./ci/runtests.sh |