diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e20a4a0..be1cbce 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -17,27 +17,27 @@ jobs: build: strategy: matrix: - rust_channel: [ stable, beta, nightly ] + rust: [ stable, beta, nightly ] include: - - rust_channel: nightly + - rust: nightly check_cfg: '-Zcheck-cfg' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - with: - toolchain: ${{ matrix.rust_channel }} + - name: Set up Rust toolchain + run: | + rustup toolchain install --profile minimal ${{ matrix.rust }} # Add a big endian target so we can check that everything at least # compiles on big endian. - targets: powerpc64-unknown-linux-gnu + rustup target add --toolchain ${{ matrix.rust }} powerpc64-unknown-linux-gnu - name: Build - run: cargo build --verbose --all ${{ matrix.check_cfg }} + run: cargo +${{ matrix.rust }} build --verbose --all ${{ matrix.check_cfg }} - name: Run tests - run: cargo test --verbose --all ${{ matrix.check_cfg }} + run: cargo +${{ matrix.rust }} test --verbose --all ${{ matrix.check_cfg }} - name: Docs - run: cargo doc --verbose --all + run: cargo +${{ matrix.rust }} doc --verbose --all - name: Check big endian - run: cargo check --target powerpc64-unknown-linux-gnu --verbose --all + run: cargo +${{ matrix.rust }} check --target powerpc64-unknown-linux-gnu --verbose --all # These jobs doesn't actually test anything, but they're only used to tell # bors the build completed, as there is no practical way to detect when a