@@ -28,10 +28,12 @@ concurrency:
28
28
jobs :
29
29
interpreter :
30
30
name : Interpreter (Debug)
31
- runs-on : ubuntu-22 .04
31
+ runs-on : ubuntu-24 .04
32
32
timeout-minutes : 90
33
33
steps :
34
34
- uses : actions/checkout@v4
35
+ with :
36
+ persist-credentials : false
35
37
- name : Build tier two interpreter
36
38
run : |
37
39
./configure --enable-experimental-jit=interpreter --with-pydebug
54
56
- x86_64-apple-darwin/clang
55
57
- aarch64-apple-darwin/clang
56
58
- x86_64-unknown-linux-gnu/gcc
57
- - x86_64-unknown-linux-gnu/clang
58
59
- aarch64-unknown-linux-gnu/gcc
59
- - aarch64-unknown-linux-gnu/clang
60
60
debug :
61
61
- true
62
62
- false
@@ -66,43 +66,29 @@ jobs:
66
66
- target : i686-pc-windows-msvc/msvc
67
67
architecture : Win32
68
68
runner : windows-latest
69
- compiler : msvc
70
69
- target : x86_64-pc-windows-msvc/msvc
71
70
architecture : x64
72
71
runner : windows-latest
73
- compiler : msvc
74
72
- target : aarch64-pc-windows-msvc/msvc
75
73
architecture : ARM64
76
74
runner : windows-latest
77
- compiler : msvc
78
75
- target : x86_64-apple-darwin/clang
79
76
architecture : x86_64
80
77
runner : macos-13
81
- compiler : clang
82
78
- target : aarch64-apple-darwin/clang
83
79
architecture : aarch64
84
80
runner : macos-14
85
- compiler : clang
86
81
- target : x86_64-unknown-linux-gnu/gcc
87
82
architecture : x86_64
88
- runner : ubuntu-22.04
89
- compiler : gcc
90
- - target : x86_64-unknown-linux-gnu/clang
91
- architecture : x86_64
92
- runner : ubuntu-22.04
93
- compiler : clang
83
+ runner : ubuntu-24.04
94
84
- target : aarch64-unknown-linux-gnu/gcc
95
85
architecture : aarch64
96
- runner : ubuntu-22.04
97
- compiler : gcc
98
- - target : aarch64-unknown-linux-gnu/clang
99
- architecture : aarch64
100
- runner : ubuntu-22.04
101
- compiler : clang
102
- env :
103
- CC : ${{ matrix.compiler }}
86
+ # Forks don't have access to our paid AArch64 runners. These jobs are skipped below:
87
+ runner : ${{ github.repository_owner == 'python' && 'ubuntu-24.04-aarch64' || 'ubuntu-24.04' }}
104
88
steps :
105
89
- uses : actions/checkout@v4
90
+ with :
91
+ persist-credentials : false
106
92
- uses : actions/setup-python@v5
107
93
with :
108
94
python-version : ' 3.11'
@@ -111,10 +97,10 @@ jobs:
111
97
if : runner.os == 'Windows' && matrix.architecture != 'ARM64'
112
98
run : |
113
99
choco install llvm --allow-downgrade --no-progress --version ${{ matrix.llvm }}.1.0
114
- ./PCbuild/build.bat --experimental-jit ${{ matrix.debug && '-d' || '--pgo ' }} -p ${{ matrix.architecture }}
100
+ ./PCbuild/build.bat --experimental-jit ${{ matrix.debug && '-d' || '' }} -p ${{ matrix.architecture }}
115
101
./PCbuild/rt.bat ${{ matrix.debug && '-d' || '' }} -p ${{ matrix.architecture }} -q --multiprocess 0 --timeout 4500 --verbose2 --verbose3
116
102
117
- # No PGO or tests (yet):
103
+ # No tests (yet):
118
104
- name : Emulated Windows
119
105
if : runner.os == 'Windows' && matrix.architecture == 'ARM64'
120
106
run : |
@@ -123,7 +109,7 @@ jobs:
123
109
124
110
# The `find` line is required as a result of https://github.com/actions/runner-images/issues/9966.
125
111
# This is a bug in the macOS runner image where the pre-installed Python is installed in the same
126
- # directory as the Homebrew Python, which causes the build to fail for macos-13. This line removes
112
+ # directory as the Homebrew Python, which causes the build to fail for macos-13. This line removes
127
113
# the symlink to the pre-installed Python so that the Homebrew Python is used instead.
128
114
- name : Native macOS
129
115
if : runner.os == 'macOS'
@@ -132,50 +118,32 @@ jobs:
132
118
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
133
119
brew install llvm@${{ matrix.llvm }}
134
120
export SDKROOT="$(xcrun --show-sdk-path)"
135
- ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '--enable-optimizations --with-lto ' }}
121
+ ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '' }}
136
122
make all --jobs 4
137
123
./python.exe -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
138
124
139
125
- name : Native Linux
140
- if : runner.os == 'Linux' && matrix.architecture == 'x86_64'
126
+ # Forks don't have access to our paid AArch64 runners. Skip those:
127
+ if : runner.os == 'Linux' && (matrix.architecture == 'x86_64' || github.repository_owner == 'python')
141
128
run : |
142
129
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
143
130
export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
144
- ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '--enable-optimizations --with-lto ' }}
131
+ ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '' }}
145
132
make all --jobs 4
146
133
./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
147
134
148
- - name : Emulated Linux
149
- if : runner.os == 'Linux' && matrix.architecture != 'x86_64'
150
- # The --ignorefile on ./python -m test is used to exclude tests known to fail when running on an emulated Linux.
151
- run : |
152
- sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
153
- export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
154
- ./configure --prefix="$(pwd)/../build"
155
- make install --jobs 4
156
- make clean --jobs 4
157
- export HOST=${{ matrix.architecture }}-linux-gnu
158
- sudo apt install --yes "gcc-$HOST" qemu-user
159
- ${{ !matrix.debug && matrix.compiler == 'clang' && './configure --enable-optimizations' || '' }}
160
- ${{ !matrix.debug && matrix.compiler == 'clang' && 'make profile-run-stamp --jobs 4' || '' }}
161
- export QEMU_LD_PREFIX="/usr/$HOST"
162
- CC="${{ matrix.compiler == 'clang' && 'clang --target=$HOST' || '$HOST-gcc' }}" \
163
- CPP="$CC --preprocess" \
164
- HOSTRUNNER=qemu-${{ matrix.architecture }} \
165
- ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '--with-lto' }} --build=x86_64-linux-gnu --host="$HOST" --with-build-python=../build/bin/python3 --with-pkg-config=no ac_cv_buggy_getaddrinfo=no ac_cv_file__dev_ptc=no ac_cv_file__dev_ptmx=yes
166
- make all --jobs 4
167
- ./python -m test --ignorefile=Tools/jit/ignore-tests-emulated-linux.txt --multiprocess 0 --timeout 4500 --verbose2 --verbose3
168
-
169
135
jit-with-disabled-gil :
170
136
name : Free-Threaded (Debug)
171
137
needs : interpreter
172
- runs-on : ubuntu-22 .04
138
+ runs-on : ubuntu-24 .04
173
139
strategy :
174
140
matrix :
175
141
llvm :
176
142
- 19
177
143
steps :
178
144
- uses : actions/checkout@v4
145
+ with :
146
+ persist-credentials : false
179
147
- uses : actions/setup-python@v5
180
148
with :
181
149
python-version : ' 3.11'
0 commit comments