Skip to content

Commit

Permalink
CI: pin dependency versions for MSRV via Cargo.lock.msrv
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Dec 11, 2022
1 parent 60fd0f8 commit 4af7539
Show file tree
Hide file tree
Showing 2 changed files with 717 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
# Test both windows-gnu and windows-msvc; use beta rust on one
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
toolchain: 1.56.0 # MSRV
variant: MSRV
- os: ubuntu-latest
deps: sudo apt-get update ; sudo apt install gcc-multilib
target: i686-unknown-linux-gnu
Expand All @@ -56,13 +56,21 @@ jobs:
toolchain: nightly
variant: minimal_versions

env:
TOOLCHAIN: ${{ matrix.toolchain }}

steps:
- uses: actions/checkout@v3
- name: MSRV
if: ${{ matrix.variant == 'MSRV' }}
env:
TOOLCHAIN: 0.56.0
run: cp Cargo.lock.msrv Cargo.lock
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
target: ${{ matrix.target }}
toolchain: ${{ matrix.toolchain }}
toolchain: ${TOOLCHAIN}
- run: ${{ matrix.deps }}
- name: Maybe minimal versions
if: ${{ matrix.variant == 'minimal_versions' }}
Expand Down

0 comments on commit 4af7539

Please sign in to comment.