From 7e4d1fe33e8dc6f9332a688f435b774530a5f53f Mon Sep 17 00:00:00 2001 From: Loong Date: Fri, 13 Oct 2023 23:50:58 +0800 Subject: [PATCH] ci: fix setup for windows builds --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6494d77..a4cc6323 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,6 +67,10 @@ jobs: CARGO_CMD=cargo CARGO_BUILD_TARGET="${{ matrix.arch }}-apple-darwin" rustup target add $CARGO_BUILD_TARGET + elif [ "${{ matrix.os }}" = "windows-latest" ]; then + CARGO_CMD=cargo + CARGO_BUILD_TARGET="${{ matrix.arch }}-pc-windows-msvc" + rustup target add $CARGO_BUILD_TARGET else if [ "${{ matrix.arch }}" = "aarch64" ]; then CARGO_CMD=cross