Skip to content

Commit 8afe577

Browse files
committed
Specify default host triple rather than default toolchain
Since the default host triple was still detected as that of the runner outside the container. With the default host triple set as desired, the default toolchain should be inferred correctly from that as well.
1 parent 57de254 commit 8afe577

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,11 @@ jobs:
208208
- container-arch: i386
209209
runner-arch: amd64
210210
runner-os: ubuntu-latest
211-
toolchain: stable-i686-unknown-linux-gnu
211+
host-triple: i686-unknown-linux-gnu
212212
- container-arch: arm32v7
213213
runner-arch: arm64
214214
runner-os: ubuntu-24.04-arm
215-
toolchain: stable-armv7-unknown-linux-gnueabihf
215+
host-triple: armv7-unknown-linux-gnueabihf
216216

217217
runs-on: ${{ matrix.runner-os }}
218218

@@ -241,7 +241,7 @@ jobs:
241241
run: |
242242
# Specify toolchain to avoid possible misdetection based on the 64-bit running kernel.
243243
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs |
244-
sh -s -- -y --default-toolchain ${{ matrix.toolchain }} --profile minimal
244+
sh -s -- -y --default-host ${{ matrix.host-triple }} --profile minimal
245245
- name: Add Rust tools to path
246246
run: echo "PATH=$HOME/.cargo/bin:$PATH" >> "$GITHUB_ENV"
247247
- uses: Swatinem/rust-cache@v2

0 commit comments

Comments
 (0)