Skip to content

Commit c2d16b3

Browse files
authored
ci: downgrade once-cell on old rustc versions (#342)
I'm doing this in CI instead of in the Cargo.toml file because I don't want to force users of newer rustc versions to use old versions of `once_cell`. Ironically, I only depend on `once_cell` to support ancient rust versions in the first place.
1 parent 35c204d commit c2d16b3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

+5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ jobs:
4141
uses: dtolnay/rust-toolchain@master
4242
with:
4343
toolchain: ${{ matrix.rust-version }}
44+
- name: Generating the Cargo.lock
45+
run: cargo generate-lockfile
46+
- name: Downgrading once_cell
47+
if: matrix.rust-version == 1.63
48+
run: cargo update -p once_cell --precise 1.20.3
4449
- name: Build
4550
run: cargo build
4651
- name: Test

0 commit comments

Comments
 (0)