Skip to content

Commit

Permalink
more stupid semver hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
d3v-null committed May 10, 2024
1 parent 64de1c3 commit 7e5e2b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ jobs:
sudo ldconfig
fi
- name: Minimum-specified Rust version works
run: |
MIN_RUST=$(grep -m1 "rust-version" Cargo.toml | sed 's|.*\"\(.*\)\"|\1|')
~/.cargo/bin/rustup install $MIN_RUST --profile minimal
cargo +${MIN_RUST} test --no-default-features
cargo +${MIN_RUST} test --all-features
- name: Run tests
run: cargo test

Expand Down Expand Up @@ -87,10 +94,3 @@ jobs:

- name: Run tests, no default features but serde
run: cargo test --no-default-features --features=serde

- name: Minimum-specified Rust version works
run: |
MIN_RUST=$(grep -m1 "rust-version" Cargo.toml | sed 's|.*\"\(.*\)\"|\1|')
~/.cargo/bin/rustup install $MIN_RUST --profile minimal
cargo +${MIN_RUST} test --no-default-features
cargo +${MIN_RUST} test --all-features
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ harness = false
[patch.crates-io]
# TODO: get rid of this once MSRV >= 1.65
dashmap = { git = "https://github.com/xacrimon/dashmap", tag = "v5.5.2" } # v5.5.3 msrv is 1.65
regex-syntax = { git = "https://github.com/rust-lang/regex", tag = "regex-syntax-0.7.5" } # ciborium-ll v > 0.2.1 needs half ^2.2, half v > 2.3.x msrv is 1.70
regex = { git = "https://github.com/rust-lang/regex", tag = "regex-syntax-0.7.5" } # regex-syntax > 0.8 msrv is 1.65
regex-syntax = { git = "https://github.com/rust-lang/regex", tag = "regex-syntax-0.7.5" }
# TODO: get rid of this once MSRV >= 1.70
ciborium = { git = "https://github.com/enarx/ciborium", tag = "v0.2.1" } # ciborium-ll v > 0.2.1 needs half ^2.2, half v > 2.3.x msrv is 1.70

0 comments on commit 7e5e2b7

Please sign in to comment.