diff options
| author | aidanfnv <aidanf@nvidia.com> | 2025-10-01 13:07:55 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-01 20:07:55 +0000 |
| commit | a43ac0053eb49fde3329cc7fdc7f60f45e502704 (patch) | |
| tree | 8c1304b57e4b55cae2b648b2988bcf1b4ee18cb8 /.github | |
| parent | 5793b6d864b572e464dd5e17dc842e99d13d310d (diff) | |
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.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/release.yml | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
