@@ -28,10 +28,12 @@ concurrency:
2828jobs :
2929 interpreter :
3030 name : Interpreter (Debug)
31- runs-on : ubuntu-22 .04
31+ runs-on : ubuntu-24 .04
3232 timeout-minutes : 90
3333 steps :
3434 - uses : actions/checkout@v4
35+ with :
36+ persist-credentials : false
3537 - name : Build tier two interpreter
3638 run : |
3739 ./configure --enable-experimental-jit=interpreter --with-pydebug
5254 - x86_64-pc-windows-msvc/msvc
5355 - aarch64-pc-windows-msvc/msvc
5456 - x86_64-apple-darwin/clang
55- # - aarch64-apple-darwin/clang
57+ - aarch64-apple-darwin/clang
5658 - x86_64-unknown-linux-gnu/gcc
57- - x86_64-unknown-linux-gnu/clang
5859 - aarch64-unknown-linux-gnu/gcc
59- - aarch64-unknown-linux-gnu/clang
6060 debug :
6161 - true
6262 - false
@@ -66,44 +66,29 @@ jobs:
6666 - target : i686-pc-windows-msvc/msvc
6767 architecture : Win32
6868 runner : windows-latest
69- compiler : msvc
7069 - target : x86_64-pc-windows-msvc/msvc
7170 architecture : x64
7271 runner : windows-latest
73- compiler : msvc
7472 - target : aarch64-pc-windows-msvc/msvc
7573 architecture : ARM64
7674 runner : windows-latest
77- compiler : msvc
7875 - target : x86_64-apple-darwin/clang
7976 architecture : x86_64
8077 runner : macos-13
81- compiler : clang
82- # GH-126464: A recent change to either GHA or LLVM broke this job:
83- # - target: aarch64-apple-darwin/clang
84- # architecture: aarch64
85- # runner: macos-14
86- # compiler: clang
78+ - target : aarch64-apple-darwin/clang
79+ architecture : aarch64
80+ runner : macos-14
8781 - target : x86_64-unknown-linux-gnu/gcc
8882 architecture : x86_64
89- runner : ubuntu-22.04
90- compiler : gcc
91- - target : x86_64-unknown-linux-gnu/clang
92- architecture : x86_64
93- runner : ubuntu-22.04
94- compiler : clang
83+ runner : ubuntu-24.04
9584 - target : aarch64-unknown-linux-gnu/gcc
9685 architecture : aarch64
97- runner : ubuntu-22.04
98- compiler : gcc
99- - target : aarch64-unknown-linux-gnu/clang
100- architecture : aarch64
101- runner : ubuntu-22.04
102- compiler : clang
103- env :
104- 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' }}
10588 steps :
10689 - uses : actions/checkout@v4
90+ with :
91+ persist-credentials : false
10792 - uses : actions/setup-python@v5
10893 with :
10994 python-version : ' 3.11'
@@ -112,10 +97,10 @@ jobs:
11297 if : runner.os == 'Windows' && matrix.architecture != 'ARM64'
11398 run : |
11499 choco install llvm --allow-downgrade --no-progress --version ${{ matrix.llvm }}.1.0
115- ./PCbuild/build.bat --experimental-jit ${{ matrix.debug && '-d' || '--pgo ' }} -p ${{ matrix.architecture }}
100+ ./PCbuild/build.bat --experimental-jit ${{ matrix.debug && '-d' || '' }} -p ${{ matrix.architecture }}
116101 ./PCbuild/rt.bat ${{ matrix.debug && '-d' || '' }} -p ${{ matrix.architecture }} -q --multiprocess 0 --timeout 4500 --verbose2 --verbose3
117102
118- # No PGO or tests (yet):
103+ # No tests (yet):
119104 - name : Emulated Windows
120105 if : runner.os == 'Windows' && matrix.architecture == 'ARM64'
121106 run : |
@@ -124,59 +109,41 @@ jobs:
124109
125110 # The `find` line is required as a result of https://github.com/actions/runner-images/issues/9966.
126111 # This is a bug in the macOS runner image where the pre-installed Python is installed in the same
127- # 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
128113 # the symlink to the pre-installed Python so that the Homebrew Python is used instead.
129114 - name : Native macOS
130115 if : runner.os == 'macOS'
131116 run : |
132117 brew update
133118 find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
134119 brew install llvm@${{ matrix.llvm }}
135- SDKROOT="$(xcrun --show-sdk-path)" \
136- ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '--enable-optimizations --with-lto ' }}
120+ export SDKROOT="$(xcrun --show-sdk-path)"
121+ ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '' }}
137122 make all --jobs 4
138123 ./python.exe -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
139124
140125 - name : Native Linux
141- 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')
142128 run : |
143129 sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
144130 export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
145- ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '--enable-optimizations --with-lto ' }}
131+ ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '' }}
146132 make all --jobs 4
147133 ./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
148134
149- - name : Emulated Linux
150- if : runner.os == 'Linux' && matrix.architecture != 'x86_64'
151- # The --ignorefile on ./python -m test is used to exclude tests known to fail when running on an emulated Linux.
152- run : |
153- sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
154- export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
155- ./configure --prefix="$(pwd)/../build"
156- make install --jobs 4
157- make clean --jobs 4
158- export HOST=${{ matrix.architecture }}-linux-gnu
159- sudo apt install --yes "gcc-$HOST" qemu-user
160- ${{ !matrix.debug && matrix.compiler == 'clang' && './configure --enable-optimizations' || '' }}
161- ${{ !matrix.debug && matrix.compiler == 'clang' && 'make profile-run-stamp --jobs 4' || '' }}
162- export QEMU_LD_PREFIX="/usr/$HOST"
163- CC="${{ matrix.compiler == 'clang' && 'clang --target=$HOST' || '$HOST-gcc' }}" \
164- CPP="$CC --preprocess" \
165- HOSTRUNNER=qemu-${{ matrix.architecture }} \
166- ./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
167- make all --jobs 4
168- ./python -m test --ignorefile=Tools/jit/ignore-tests-emulated-linux.txt --multiprocess 0 --timeout 4500 --verbose2 --verbose3
169-
170135 jit-with-disabled-gil :
171136 name : Free-Threaded (Debug)
172137 needs : interpreter
173- runs-on : ubuntu-22 .04
138+ runs-on : ubuntu-24 .04
174139 strategy :
175140 matrix :
176141 llvm :
177142 - 19
178143 steps :
179144 - uses : actions/checkout@v4
145+ with :
146+ persist-credentials : false
180147 - uses : actions/setup-python@v5
181148 with :
182149 python-version : ' 3.11'
0 commit comments