Skip to content

Commit

Permalink
ci: fix msrv checks
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed May 2, 2024
1 parent 481cf55 commit 10bd847
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,17 @@ jobs:
with:
toolchain: ${{ matrix.version.version }}

- name: Install cargo-hack and cargo-ci-cache-clean
- name: Install just, cargo-hack, cargo-ci-cache-clean
uses: taiki-e/install-action@v2.28.1
with:
tool: cargo-hack,cargo-ci-cache-clean
tool: just,cargo-hack,cargo-ci-cache-clean

- name: Generate Cargo.lock
run: cargo generate-lockfile

- name: workaround MSRV issues
if: matrix.version.name == 'msrv'
run: |
cargo update -p=ahash --precise=0.8.7
cargo update -p=ciborium --precise=0.2.1
cargo update -p=ciborium-ll --precise=0.2.1
cargo update -p=time --precise=0.3.16
cargo update -p=clap --precise=4.3.24
cargo update -p=clap_lex --precise=0.5.0
cargo update -p=anstyle --precise=1.0.2
run: just downgrade-msrv

- name: check lib
if: >
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[workspace]
resolver = "2"
members = [
"actix-codec",
"actix-macros",
Expand All @@ -12,7 +13,6 @@ members = [
"local-channel",
"local-waker",
]
resolver = "2"

[workspace.package]
license = "MIT OR Apache-2.0"
Expand Down
12 changes: 12 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
_list:
@just --list

# Downgrade dev-dependencies necessary to run MSRV checks/tests.
[private]
downgrade-msrv:
cargo update -p=ahash --precise=0.8.7
cargo update -p=ciborium --precise=0.2.1
cargo update -p=ciborium-ll --precise=0.2.1
cargo update -p=time --precise=0.3.16
cargo update -p=clap --precise=4.3.24
cargo update -p=clap_lex --precise=0.5.0
cargo update -p=anstyle --precise=1.0.2
cargo update -p=trybuild --precise=1.0.89

# Document crates in workspace.
doc:
RUSTDOCFLAGS="--cfg=docsrs" cargo +nightly doc --no-deps --workspace --features=rustls,openssl
Expand Down

0 comments on commit 10bd847

Please sign in to comment.