Skip to content

Commit b06048d

Browse files
authored
Attempt to fix 1.82 CI (#1085)
* Attempt to fix 1.82 CI * Update idna tests * syn
1 parent 9771ab5 commit b06048d

File tree

4 files changed

+7251
-41
lines changed

4 files changed

+7251
-41
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,24 @@ jobs:
4040
if: |
4141
matrix.rust == '1.63.0'
4242
run: |
43-
cargo update -p idna_adapter --precise 1.1.0
44-
cargo update -p getopts --precise 0.2.22
45-
cargo update -p unicode-width --precise 0.1.12
43+
# cargo update -p idna_adapter --precise 1.1.0
44+
# cargo update -p getopts --precise 0.2.22
45+
# cargo update -p unicode-width --precise 0.1.12
46+
# cargo update syn@2 --precise 2.0.100
47+
# Unfortunately `syn@2` syntax doesn't work on 1.63, and we don't know the precise
48+
# version beforehand. So we copy the lockfile we have already prepared.
49+
cp ci-lockfiles/1.63.Cargo.lock Cargo.lock
50+
# Older Unicode versions have a different test file
51+
cp idna/tests/IdnaTestV2-Unicode16.txt idna/tests/IdnaTestV2.txt
52+
- name: Downgrade deps on Rust 1.82.0
53+
if: |
54+
matrix.rust == '1.82.0'
55+
run: |
56+
cargo update -p icu_normalizer --precise 2.0.1
57+
cargo update -p icu_provider --precise 2.0.0
58+
cargo update -p icu_locale_core --precise 2.0.1
59+
# Older Unicode versions have a different test file
60+
cp idna/tests/IdnaTestV2-Unicode16.txt idna/tests/IdnaTestV2.txt
4661
- name: Add `aarch64-unknown-none` toolchain for `no_std` tests
4762
if: |
4863
matrix.os == 'ubuntu-latest' &&

0 commit comments

Comments
 (0)