From a43ac0053eb49fde3329cc7fdc7f60f45e502704 Mon Sep 17 00:00:00 2001 From: aidanfnv Date: Wed, 1 Oct 2025 13:07:55 -0700 Subject: Re-add Windows cross-compile setup from release workflow (#8580) For #8578 This re-adds the cross-compile target setup step for Windows releases that was erroneously removed in #8470, which made aarch64 releases build x64 binaries. The flow should be: - setup MSVC for host arch - build generators with cmake - setup MSVC for cross-compile target arch - build slang Based on the description of #8470, it seems that the cross-compile MSVC step was mistaken as a duplicate for the host MSVC step and removed for being seemingly redundant. --- .github/workflows/release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 47911a1fb..7ac61be65 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,6 +78,12 @@ jobs: mkdir build-platform-generators cmake --install build --config Release --component generators --prefix build-platform-generators + - name: Setup Windows dev tools for host and target architecture + if: matrix.os == 'windows' + uses: ilammy/msvc-dev-cmd@v1 + with: + arch: ${{ matrix.platform == 'aarch64' && 'amd64_arm64' || 'amd64' }} + - name: Build Slang run: | if [[ "${{ matrix.platform }}" == "wasm" ]]; then -- cgit v1.2.3