Skip to content

Commit 51fa3b5

Browse files
committed
Fix exclusion logic to be the same of macOS.
1 parent 4be422e commit 51fa3b5

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,14 @@ jobs:
249249
strategy:
250250
fail-fast: false
251251
matrix:
252-
os: [ubuntu-24.04]
253-
include:
254-
- os: ubuntu-24.04-aarch64
255-
if: ${{ github.repository_owner != 'python' }}
252+
os:
253+
- ubuntu-24.04
254+
- ubuntu-24.04-aarch64
255+
is-fork: # only used for the exclusion trick
256+
- ${{ github.repository_owner != 'python' }}
257+
exclude:
258+
- os: ubuntu-24.04-aarch64
259+
is-fork: true
256260
openssl_ver: [3.0.15, 3.1.7, 3.2.3, 3.3.2]
257261
env:
258262
OPENSSL_VER: ${{ matrix.openssl_ver }}
@@ -432,10 +436,14 @@ jobs:
432436
if: needs.check_source.outputs.run_tests == 'true'
433437
strategy:
434438
matrix:
435-
os: [ubuntu-24.04]
436-
include:
437-
- os: ubuntu-24.04-aarch64
438-
if: ${{ github.repository_owner != 'python' }}
439+
os:
440+
- ubuntu-24.04
441+
- ubuntu-24.04-aarch64
442+
is-fork: # only used for the exclusion trick
443+
- ${{ github.repository_owner != 'python' }}
444+
exclude:
445+
- os: ubuntu-24.04-aarch64
446+
is-fork: true
439447
env:
440448
OPENSSL_VER: 3.0.15
441449
PYTHONSTRICTEXTENSIONBUILD: 1

0 commit comments

Comments
 (0)