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 fa771da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ jobs:
- uses: actions/checkout@v4
with:
ref: stable
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
- name: Set up Rust toolchain
run: rustup toolchain install --no-self-update --profile minimal nightly
- name: Build
run: cargo build --all
run: cargo +nightly build --all
- name: Generate self-profile
run: RUSTFLAGS="-Zself-profile" cargo +nightly build --bin crox
- name: Check crox
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,20 @@ 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 --no-self-update --profile minimal ${{ matrix.rust }}
rustup default ${{ 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 }}
- name: Run tests
Expand Down

0 comments on commit fa771da

Please sign in to comment.