@@ -172,20 +172,25 @@ jobs:
172172 # Use zig as our C compiler for convenient cross-compilation. We run into rustls having a dependency on `ring`.
173173 # This crate uses C and assembly code, and because of its build scripts, `cargo clippy` needs to be able to compile
174174 # that code for our target.
175- - uses : mlugg/setup-zig@v2
176- with :
177- version : latest
178- if : ${{matrix.use_zig}}
175+ # - uses: mlugg/setup-zig@v2
176+ # with:
177+ # version: latest
178+ # if: ${{matrix.use_zig}}
179+ #
180+ # - name: Install cargo-zigbuild
181+ # uses: taiki-e/install-action@c5b1b6f479c32f356cc6f4ba672a47f63853b13b # v2.62.38
182+ # with:
183+ # tool: cargo-zigbuild
184+ # if: ${{matrix.use_zig}}
185+ #
186+ # - name: Set TARGET_CC for zig
187+ # run: echo "TARGET_CC=/home/runner/.cargo/bin/cargo-zigbuild zig cc -- ${{matrix.zig_args}}" >> $GITHUB_ENV
188+ # if: ${{matrix.use_zig}}
179189
180- - name : Install cargo-zigbuild
181- uses : taiki-e/install- action@c5b1b6f479c32f356cc6f4ba672a47f63853b13b # v2.62.38
190+ - name : Install cross-compilation tools
191+ uses : taiki-e/setup-cross-toolchain- action@84e58a47fc2bcd3821a2aa8c153595bbffb0e10f # v1.32.1
182192 with :
183- tool : cargo-zigbuild
184- if : ${{matrix.use_zig}}
185-
186- - name : Set TARGET_CC for zig
187- run : echo "TARGET_CC=/home/runner/.cargo/bin/cargo-zigbuild zig cc -- ${{matrix.zig_args}}" >> $GITHUB_ENV
188- if : ${{matrix.use_zig}}
193+ target : ${{ matrix.target }}
189194
190195 - name : Rust cache
191196 uses : Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1
0 commit comments