Skip to content

Commit

Permalink
Merge pull request #48 from robinst/msrv-cargo-lock
Browse files Browse the repository at this point in the history
Use Cargo.lock for testing against MSRV instead of pinning
  • Loading branch information
robinst committed Sep 30, 2022
2 parents cd03506 + 1343064 commit 490281a
Show file tree
Hide file tree
Showing 3 changed files with 629 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
- 1.46.0 # MSRV (minimum supported Rust version)
- stable
- beta
include:
- rust: 1.46.0
msrv: true
steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand All @@ -47,6 +50,13 @@ jobs:
profile: minimal
override: true

# See https://github.com/matklad/once_cell/issues/201
# To test locally, enable the lock file and then run:
# $ docker run --rm --user "$(id -u)":"$(id -g)" -v "$PWD":/usr/src/myapp -w /usr/src/myapp rust:1.46.0 cargo test
- name: Use Cargo.lock for MSRV
if: ${{ matrix.msrv }}
run: cp Cargo.lock.msrv Cargo.lock

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit 490281a

Please sign in to comment.