summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorGangzheng Tong <tonggangzheng@gmail.com>2025-09-17 10:40:05 -0700
committerGitHub <noreply@github.com>2025-09-17 17:40:05 +0000
commit570277137a2baa658ccad78487858205873398da (patch)
tree656d3b79e9ae463edb012c697193401e956269b6 /.github/workflows
parent5610d78451570c8866d207b0ce81005caaefb785 (diff)
Use self-hosted runner for Windows release build (#8470)
- Remove hard-coded Win SDK version. - Using self-hosted machine for building release package in Windows. - Remove the steps from release.yml that have been done in common steup. --------- Co-authored-by: slangbot <ellieh+slangbot@nvidia.com> Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/release.yml32
1 files changed, 6 insertions, 26 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 21181ced3..47911a1fb 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -38,7 +38,11 @@ jobs:
compiler: gcc,
build-slang-llvm: false,
}
- - { os: windows, runs-on: windows-latest, compiler: cl }
+ - {
+ os: windows,
+ runs-on: ["Windows", "self-hosted", "GCP-T4"],
+ compiler: cl,
+ }
- { os: macos, runs-on: macos-latest, compiler: clang }
- { build-slang-llvm: false }
@@ -58,12 +62,7 @@ jobs:
with:
submodules: "recursive"
fetch-depth: "0"
- - name: Install dependencies
- run: |
- if [[ "${{ matrix.os }}" == "linux" ]]; then
- sudo apt-get update
- sudo apt-get install -y libx11-dev
- fi
+
- name: Setup
uses: ./.github/actions/common-setup
with:
@@ -79,25 +78,6 @@ jobs:
mkdir build-platform-generators
cmake --install build --config Release --component generators --prefix build-platform-generators
- - name: Change dev tools to host arch (windows)
- uses: ilammy/msvc-dev-cmd@v1
- with:
- arch: ${{matrix.platform == 'aarch64' && 'amd64_arm64' || 'amd64'}}
- sdk: "10.0.19041.0"
-
- - name: Change dev tools to host arch (linux and macos)
- run: |
- if [[ "${{matrix.os}}" == linux* && "${{matrix.platform}}" == "aarch64" && "$(uname -m)" != "aarch64" ]]; then
- export CC=aarch64-linux-gnu-gcc
- export CXX=aarch64-linux-gnu-g++
- fi
- CMAKE_OSX_ARCHITECTURES="${{matrix.platform}}"
- CMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES//aarch64/arm64}
-
- echo "CC=$CC" >> "$GITHUB_ENV"
- echo "CXX=$CXX" >> "$GITHUB_ENV"
- echo "CMAKE_OSX_ARCHITECTURES=$CMAKE_OSX_ARCHITECTURES" >> "$GITHUB_ENV"
-
- name: Build Slang
run: |
if [[ "${{ matrix.platform }}" == "wasm" ]]; then