Skip to content

Commit

Permalink
Fix the CI for MSRV 1.60
Browse files Browse the repository at this point in the history
When testing the MSRV, downgrade `tempfile` to v3.6.0 so that it will compile.
  • Loading branch information
tatsuya6502 committed Jul 29, 2023
1 parent 7f4eb57 commit 9e169db
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 13 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 tempfile --precise 3.6.0
7 changes: 7 additions & 0 deletions .ci_extras/pin-crate-vers-nightly.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

set -eux

# Pin some dependencies to specific versions for the nightly toolchain.
cargo update -p openssl --precise 0.10.39
cargo update -p cc --precise 1.0.61
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ linux_arm64_task:
# pin_deps_script: |
# if [ "v$RUST_VERSION" == "v1.60.0" ]; then
# echo 'Pinning some dependencies to specific versions'
# cargo update -p <crate> --precise <version>
# ./.ci_extras/pin-crate-vers-msrv.sh
# else
# echo 'Skipped'
# fi
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +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
run: ./.ci_extras/pin-crate-vers-nightly.sh

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

- name: Show cargo tree
uses: actions-rs/cargo@v1
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/CIQuantaDisabled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +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
run: ./.ci_extras/pin-crate-vers-nightly.sh

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

- name: Run tests (debug, but no quanta feature)
uses: actions-rs/cargo@v1
Expand Down

0 comments on commit 9e169db

Please sign in to comment.