Skip to content

Commit b728254

Browse files
authored
Downgrade once_cell in CI for MSRV 1.64 (#558)
* Downgrade once_cell and serde_bytes in CI for MSRV 1.64 * Update GitHub actions
1 parent 74d35d4 commit b728254

File tree

4 files changed

+21
-15
lines changed

4 files changed

+21
-15
lines changed

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
runs:
99
using: composite
1010
steps:
11-
- uses: actions/cache@v3
11+
- uses: actions/cache@v4
1212
with:
1313
path: |
1414
~/.cargo/bin/

.github/workflows/ci.yaml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout the Repository
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
- name: Install the Rust toolchain
2222
uses: actions-rs/toolchain@v1
2323
with:
@@ -50,7 +50,7 @@ jobs:
5050
lock: ["Cargo.lock", "Cargo.lock.min"]
5151

5252
steps:
53-
- uses: actions/checkout@v3
53+
- uses: actions/checkout@v4
5454
- name: Download the Cargo lockfiles
5555
uses: actions/download-artifact@v4
5656
with:
@@ -66,11 +66,14 @@ jobs:
6666
toolchain: ${{ matrix.rust }}
6767
profile: minimal
6868
override: true
69+
# Downgrade some dependencies for MSRV 1.64
70+
- run: |
71+
cargo update -p serde_bytes --precise 0.11.16
72+
cargo update -p indexmap --precise 2.5.0
73+
cargo update -p once_cell --precise 1.20.3
74+
if: ${{ matrix.rust == '1.64.0' }}
6975
- run: cargo test
7076
- run: cargo test --features integer128
71-
# Downgrade the indexmap dependency for MSRV 1.64
72-
- run: cargo update -p indexmap --precise 2.5.0
73-
if: ${{ matrix.rust == '1.64.0' }}
7477
- run: cargo test --features indexmap
7578
- run: cargo test --all-features
7679

@@ -79,7 +82,7 @@ jobs:
7982
runs-on: ubuntu-latest
8083
continue-on-error: true
8184
steps:
82-
- uses: actions/checkout@v3
85+
- uses: actions/checkout@v4
8386
- uses: ./.github/actions/setup
8487
with:
8588
key: clippy-msrv
@@ -89,10 +92,13 @@ jobs:
8992
profile: minimal
9093
components: clippy
9194
override: true
95+
# Downgrade some dependencies for MSRV 1.64
96+
- run: |
97+
cargo update -p serde_bytes --precise 0.11.16
98+
cargo update -p indexmap --precise 2.5.0
99+
cargo update -p once_cell --precise 1.20.3
92100
- run: cargo clippy -- -D warnings
93101
- run: cargo clippy --features integer128 -- -D warnings
94-
# Downgrade the indexmap dependency for MSRV 1.64
95-
- run: cargo update -p indexmap --precise 2.5.0
96102
- run: cargo clippy --features indexmap -- -D warnings
97103
- run: cargo clippy --all-features -- -D warnings
98104

@@ -101,7 +107,7 @@ jobs:
101107
runs-on: ubuntu-latest
102108
continue-on-error: true
103109
steps:
104-
- uses: actions/checkout@v3
110+
- uses: actions/checkout@v4
105111
- uses: ./.github/actions/setup
106112
with:
107113
key: clippy-fuzz
@@ -117,7 +123,7 @@ jobs:
117123
name: "Format: stable"
118124
runs-on: ubuntu-latest
119125
steps:
120-
- uses: actions/checkout@v3
126+
- uses: actions/checkout@v4
121127
- uses: ./.github/actions/setup
122128
with:
123129
key: rustfmt-stable
@@ -134,7 +140,7 @@ jobs:
134140
name: "Coverage: stable"
135141
runs-on: ubuntu-latest
136142
steps:
137-
- uses: actions/checkout@v3
143+
- uses: actions/checkout@v4
138144
- uses: ./.github/actions/setup
139145
with:
140146
key: coverage
@@ -185,7 +191,7 @@ jobs:
185191
# files: coverage.lcov
186192
# fail_ci_if_error: true
187193
- name: Deploy the code coverage report
188-
uses: peaceiris/actions-gh-pages@v3
194+
uses: peaceiris/actions-gh-pages@v4
189195
with:
190196
github_token: ${{ secrets.GITHUB_TOKEN }}
191197
publish_dir: ./html

.github/workflows/cibench.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77

88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1010
- uses: ./.github/actions/setup
1111
with:
1212
key: bench

.github/workflows/cifuzz.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
dry-run: false
2020
language: rust
2121
- name: Upload Crash
22-
uses: actions/upload-artifact@v3
22+
uses: actions/upload-artifact@v4
2323
if: failure() && steps.build.outcome == 'success'
2424
with:
2525
name: artifacts

0 commit comments

Comments
 (0)