Skip to content

Commit

Permalink
Merge pull request #102 from fancy-regex/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 2457f8a + 4aa69ea commit f594a9b
Show file tree
Hide file tree
Showing 3 changed files with 694 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
- 1.42.0 # MSRV (minimum supported Rust version)
- stable
- beta
include:
- rust: 1.42.0
msrv: true
steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand All @@ -52,6 +55,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.42.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 f594a9b

Please sign in to comment.