Skip to content

Commit

Permalink
Merge pull request #354 from moka-rs/fix-ci-2023-12-11-v012
Browse files Browse the repository at this point in the history
Fix the CI with minimal crate versions. (moka v0.12.x)
  • Loading branch information
tatsuya6502 authored Dec 11, 2023
2 parents 5ee0f6a + ecc5fd5 commit 0fc8300
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 19 deletions.
6 changes: 6 additions & 0 deletions .ci_extras/pin-crate-vers-msrv.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

set -eux

# Pin some dependencies to specific versions for the MSRV.
# cargo update -p <crate> --precise <version>
6 changes: 6 additions & 0 deletions .ci_extras/pin-crate-vers-nightly.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

set -eux

# Pin some dependencies to specific versions for the nightly toolchain.
cargo update -p proc-macro2 --precise 1.0.60
14 changes: 5 additions & 9 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,11 @@ jobs:

- name: Pin some dependencies to specific versions (Nightly only)
if: ${{ matrix.rust == 'nightly' }}
run: |
cargo update -p openssl --precise 0.10.39
cargo update -p cc --precise 1.0.61
cargo update -p proc-macro2 --precise 1.0.60
# - name: Pin some dependencies to specific versions (MSRV only)
# if: ${{ matrix.rust == '1.65.0' }}
# run: |
# cargo update -p <crate> --precise <version>
run: ./.ci_extras/pin-crate-vers-nightly.sh

- name: Pin some dependencies to specific versions (MSRV only)
if: ${{ matrix.rust == '1.65.0' }}
run: ./.ci_extras/pin-crate-vers-msrv.sh

- name: Show cargo tree
uses: actions-rs/cargo@v1
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/CIQuantaDisabled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,11 @@ jobs:

- name: Pin some dependencies to specific versions (Nightly only)
if: ${{ matrix.rust == 'nightly' }}
run: |
cargo update -p openssl --precise 0.10.39
cargo update -p cc --precise 1.0.61
cargo update -p proc-macro2 --precise 1.0.60
run: ./.ci_extras/pin-crate-vers-nightly.sh

# - name: Pin some dependencies to specific versions (MSRV only)
# if: ${{ matrix.rust == '1.65.0' }}
# run: |
# cargo update -p <crate> --precise <version>
- name: Pin some dependencies to specific versions (MSRV only)
if: ${{ matrix.rust == '1.65.0' }}
run: ./.ci_extras/pin-crate-vers-msrv.sh

- name: Run tests (debug, but no quanta feature)
uses: actions-rs/cargo@v1
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ log = { version = "0.4", optional = true }
actix-rt = "2.8"
ahash = "0.8.3"
anyhow = "1.0.19"
async-std = { version = "1.11", features = ["attributes"] }
async-std = { version = "1.12", features = ["attributes"] }
env_logger = "0.10.0"
getrandom = "0.2"
paste = "1.0.9"
reqwest = "0.11.11"
reqwest = { version = "0.11.11", default-features = false, features = ["rustls-tls"] }
skeptic = "0.13"
tokio = { version = "1.19", features = ["fs", "macros", "rt-multi-thread", "sync", "time" ] }

Expand Down

0 comments on commit 0fc8300

Please sign in to comment.