Skip to content

Commit ffe4fd7

Browse files
committed
Address feedback
1 parent 9b0a92c commit ffe4fd7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/test.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ jobs:
267267
- x86_64-pc-windows-msvc
268268
- i686-pc-windows-msvc
269269
manifest: ['psm/Cargo.toml', 'Cargo.toml']
270+
xwin_version: ["0.1.6"]
270271
timeout-minutes: 10
271272
steps:
272273
- uses: actions/checkout@v2
@@ -275,18 +276,18 @@ jobs:
275276
with:
276277
toolchain: stable
277278
profile: minimal
279+
target: ${{ matrix.rust_target }}
278280
- name: Add toolchain shims
279281
run: |
280282
set -eux
281283
sudo ln -s clang-12 /usr/bin/clang-cl
282284
sudo ln -s llvm-ar-12 /usr/bin/llvm-lib
283285
sudo ln -s lld-link-12 /usr/bin/lld-link
284286
- name: Install Windows SDK
285-
env:
286-
xwin_version: "0.1.6"
287287
run: |
288288
set -eux
289-
xwin_prefix="xwin-${xwin_version}-x86_64-unknown-linux-musl"
289+
xwin_version=${{ matrix.xwin_version }}
290+
xwin_prefix="xwin-$xwin_version-x86_64-unknown-linux-musl"
290291
291292
# Install xwin to cargo/bin via github release. Note you could also just use `cargo install xwin`.
292293
curl --fail -L https://github.com/Jake-Shadle/xwin/releases/download/$xwin_version/$xwin_prefix.tar.gz | tar -xzv -C /home/runner/.cargo/bin --strip-components=1 $xwin_prefix/xwin
@@ -308,7 +309,6 @@ jobs:
308309
RUSTFLAGS: "-Lnative=/tmp/xwin/crt/lib/x86_64 -Lnative=/tmp/xwin/sdk/lib/um/x86_64 -Lnative=/tmp/xwin/sdk/lib/ucrt/x86_64"
309310
run: |
310311
set -eux
311-
rustup target add ${{ matrix.rust_target }}
312312
cargo build --target ${{ matrix.rust_target }} --manifest-path ${{ matrix.manifest }}
313313
314314
wasm-test:

0 commit comments

Comments
 (0)