Skip to content

Commit

Permalink
ci: add job for stable Rust
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed Nov 22, 2024
1 parent 70919b4 commit 0b1558a
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,22 +84,23 @@ jobs:
run: cargo install cargo-rdme
- name: cargo rdme --check
run: cargo rdme --check
# disable msrv, since we are nightly only
# msrv:
# runs-on: ubuntu-latest
# # we use a matrix here just because env can't be used in job names
# # https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
# strategy:
# matrix:
# msrv: [1.61.0] # `impl Trait` requires this
# name: ubuntu / ${{ matrix.msrv }}
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true
# - name: Install ${{ matrix.msrv }}
# uses: dtolnay/rust-toolchain@master
# with:
# toolchain: ${{ matrix.msrv }}
# - name: cargo +${{ matrix.msrv }} check
# run: cargo check
msrv:
runs-on: ubuntu-latest
# we use a matrix here just because env can't be used in job names
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
strategy:
matrix:
msrv: [1.82.0] # new_uninit requires this
name: ubuntu / ${{ matrix.msrv }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install ${{ matrix.msrv }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.msrv }}
- name: cargo install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: cargo hack
run: cargo +${{ matrix.msrv }} hack --feature-powerset --exclude-features alloc,arc,default check

0 comments on commit 0b1558a

Please sign in to comment.