Przeglądaj źródła

ci: downgrade crates when building for Rust 1.67.0 (#1003)

Crates from the https://github.com/unicode-org/icu4x workspace got a round of
releases recently, increasing the minimum Rust version.

When building this project with Rust 1.67.0, make sure to downgrade some of the
dependencies like is already done for Rust 1.63.0.
Max Inden 1 rok temu
rodzic
commit
e7ee5c67a6
1 zmienionych plików z 10 dodań i 2 usunięć
  1. 10 2
      .github/workflows/main.yml

+ 10 - 2
.github/workflows/main.yml

@@ -37,10 +37,18 @@ jobs:
           toolchain: ${{ matrix.rust }}
           toolchain: ${{ matrix.rust }}
       # Add toolchain for no_std tests
       # Add toolchain for no_std tests
       - run: rustup toolchain install nightly
       - run: rustup toolchain install nightly
-      - name: Downgrade idna_adapter on Rust 1.63.0
+      - name: Downgrade deps on Rust 1.63.0
         if: |
         if: |
           matrix.rust == '1.63.0'
           matrix.rust == '1.63.0'
-        run: cargo update -p idna_adapter --precise 1.1.0
+        run: |
+          cargo update -p idna_adapter --precise 1.1.0
+      - name: Downgrade deps on Rust 1.67.0
+        if: |
+          matrix.rust == '1.67.0'
+        run: |
+          cargo update -p zerofrom --precise 0.1.4
+          cargo update -p yoke --precise 0.7.4
+          cargo update -p litemap --precise 0.7.3
       - name: Add `aarch64-unknown-none` toolchain for `no_std` tests
       - name: Add `aarch64-unknown-none` toolchain for `no_std` tests
         if: |
         if: |
           matrix.os == 'ubuntu-latest' &&
           matrix.os == 'ubuntu-latest' &&