Skip to content

Commit

Permalink
Use vanilla rustup in CI (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed Jan 5, 2024
1 parent f6e0941 commit de43237
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de43237

Please sign in to comment.