From dccc83dd3620e929145ddb174e4e3a909ac51aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Standa=20Luke=C5=A1?= Date: Fri, 17 May 2024 18:21:03 +0200 Subject: [PATCH] CI: Support potential builds on Windows --- .github/setupandbuild/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/setupandbuild/action.yaml b/.github/setupandbuild/action.yaml index 8b8d356..749bb0c 100644 --- a/.github/setupandbuild/action.yaml +++ b/.github/setupandbuild/action.yaml @@ -21,7 +21,7 @@ runs: - name: Build uses: actions-rs/cargo@v1 with: - use-cross: ${{ inputs.rust_target == 'x86_64-unknown-linux-musl' || inputs.rust_target == 'x86_64-pc-windows-gnu' || inputs.rust_target == 'aarch64-unknown-linux-gnu' || inputs.rust_target == 'riscv64gc-unknown-linux-gnu' }} + use-cross: ${{ runner.os != 'Windows' && (inputs.rust_target == 'x86_64-unknown-linux-musl' || inputs.rust_target == 'x86_64-pc-windows-gnu' || inputs.rust_target == 'aarch64-unknown-linux-gnu' || inputs.rust_target == 'riscv64gc-unknown-linux-gnu') }} command: build args: --locked --profile=${{ inputs.rust_profile }} --manifest-path=cli/Cargo.toml --target=${{ inputs.rust_target }} - name: Copy binary