Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2566c81

Browse files
tstellarc-rhodes
authored andcommitted
workflows/release-binaries: Add support for Windows ARM builds (llvm#177609)
(cherry picked from commit 6de2b51)
1 parent ff0568f commit 2566c81

4 files changed

Lines changed: 402 additions & 306 deletions

File tree

.github/workflows/release-binaries-all.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ jobs:
9292
- ubuntu-22.04-arm
9393
- macos-14
9494
- windows-2022
95+
- windows-11-arm
9596

9697
uses: ./.github/workflows/release-binaries.yml
9798
with:

.github/workflows/release-binaries.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ jobs:
7171
with:
7272
python-version: '3.14'
7373

74+
- name: Install Windows ARM64 dependencies
75+
if: runner.os == 'Windows' && runner.arch == 'ARM64'
76+
run: |
77+
# Some of the python modules we install require this package to be installed on the system.
78+
vcpkg install openssl:arm64-windows-static-md
79+
echo "OPENSSL_DIR=$env:VCPKG_INSTALLATION_ROOT\installed\arm64-windows-static-md" >> $env:GITHUB_ENV
80+
7481
- name: Checkout LLVM
7582
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
7683

@@ -168,6 +175,10 @@ jobs:
168175
build_runs_on="depot-${{ inputs.runs-on }}-16"
169176
test_runs_on=$build_runs_on
170177
;;
178+
windows-11-arm)
179+
build_runs_on="windows-11-arm-16core"
180+
test_runs_on=$build_runs_on
181+
;;
171182
macos-14)
172183
if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
173184
build_runs_on="${{ inputs.runs-on }}"
@@ -223,7 +234,7 @@ jobs:
223234
- name: Setup Python library path
224235
if: runner.os == 'Windows'
225236
run: |
226-
echo "LIB=$env:LIB;C:\hostedtoolcache\windows\Python\3.11.9\x64\libs" >> $env:GITHUB_ENV
237+
echo "LIB=$env:LIB;C:\hostedtoolcache\windows\Python\3.11.9\$($env:RUNNER_ARCH.ToLower())\libs" >> $env:GITHUB_ENV
227238
228239
- name: Setup crlf
229240
if: runner.os == 'Windows'

0 commit comments

Comments
 (0)