Skip to content

Commit c341a6c

Browse files
committed
Move if conditions into the steps
1 parent a9f0bd6 commit c341a6c

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/reusable-windows-msi.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ env:
2020

2121
jobs:
2222
build:
23-
# Forks don't have access to Windows on Arm runners. Skip those:
24-
if: inputs.arch != 'arm64' || github.repository_owner == 'python'
2523
name: installer for ${{ inputs.arch }}
2624
runs-on: ${{ inputs.os }}
2725
timeout-minutes: 60
@@ -33,5 +31,7 @@ jobs:
3331
with:
3432
persist-credentials: false
3533
- name: Build CPython installer
34+
# Forks don't have access to Windows on Arm runners. Skip those:
35+
if: inputs.arch != 'arm64' || github.repository_owner == 'python'
3636
run: ./Tools/msi/build.bat --doc -"${ARCH}"
3737
shell: bash

.github/workflows/reusable-windows.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ env:
2424
2525
jobs:
2626
build:
27-
# Forks don't have access to Windows on Arm runners. Skip those:
28-
if: inputs.arch != 'arm64' || github.repository_owner == 'python'
2927
name: Build and test (${{ inputs.arch }})
3028
runs-on: ${{ inputs.os }}
3129
timeout-minutes: 60
@@ -39,15 +37,21 @@ jobs:
3937
if: inputs.arch != 'Win32'
4038
run: echo "::add-matcher::.github/problem-matchers/msvc.json"
4139
- name: Build CPython
40+
# Forks don't have access to Windows on Arm runners. Skip those:
41+
if: inputs.arch != 'arm64' || github.repository_owner == 'python'
4242
run: >-
4343
.\\PCbuild\\build.bat
4444
-e -d -v
4545
-p "${ARCH}"
4646
${{ fromJSON(inputs.free-threading) && '--disable-gil' || '' }}
4747
shell: bash
4848
- name: Display build info
49+
# Forks don't have access to Windows on Arm runners. Skip those:
50+
if: inputs.arch != 'arm64' || github.repository_owner == 'python'
4951
run: .\\python.bat -m test.pythoninfo
5052
- name: Tests
53+
# Forks don't have access to Windows on Arm runners. Skip those:
54+
if: inputs.arch != 'arm64' || github.repository_owner == 'python'
5155
run: >-
5256
.\\PCbuild\\rt.bat
5357
-p "${ARCH}"

0 commit comments

Comments
 (0)