Skip to content

Commit 18649ae

Browse files
committed
Restrict WoA for forks
1 parent 2d17266 commit 18649ae

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,17 @@ jobs:
163163
free-threading:
164164
- false
165165
- true
166+
is-fork: # only used for the exclusion trick
167+
- ${{ github.repository_owner != 'python' }}
166168
include:
167169
- os: windows-aarch64
168170
arch: arm64
169171
free-threading: false
172+
is-fork: false
170173
- os: windows-aarch64
171174
arch: arm64
172175
free-threading: true
176+
is-fork: false
173177
- os: windows-latest
174178
arch: Win32
175179
free-threading: false
@@ -192,9 +196,12 @@ jobs:
192196
arch:
193197
- x86
194198
- x64
199+
is-fork: # only used for the exclusion trick
200+
- ${{ github.repository_owner != 'python' }}
195201
include:
196202
- os: windows-aarch64
197203
arch: arm64
204+
is-fork: false
198205
uses: ./.github/workflows/reusable-windows-msi.yml
199206
with:
200207
os: ${{ matrix.os }}

.github/workflows/jit.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ jobs:
7474
runner: windows-latest
7575
- target: aarch64-pc-windows-msvc/msvc
7676
architecture: ARM64
77-
runner: windows-aarch64
77+
# Forks don't have access to Windows on Arm runners. These jobs are skipped below:
78+
runner: ${{ github.repository_owner == 'python' && 'windows-aarch64' || 'windows-latest' }}
7879
- target: x86_64-apple-darwin/clang
7980
architecture: x86_64
8081
runner: macos-13
@@ -96,7 +97,8 @@ jobs:
9697
python-version: '3.11'
9798

9899
- name: Native Windows
99-
if: runner.os == 'Windows'
100+
# Forks don't have access to Windows on Arm runners. Skip those:
101+
if: runner.os == 'Windows' && (matrix.architecture != 'ARM64' || github.repository_owner == 'python')
100102
run: |
101103
choco install llvm --allow-downgrade --no-progress --version ${{ matrix.llvm }}.1.0
102104
./PCbuild/build.bat --experimental-jit ${{ matrix.debug && '-d' || '' }} -p ${{ matrix.architecture }}

0 commit comments

Comments
 (0)