@@ -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 
@@ -78,12 +80,15 @@ jobs:
7880            runner : macos-14 
7981          - target : x86_64-unknown-linux-gnu/gcc 
8082            architecture : x86_64 
81-             runner : ubuntu-22 .04 
83+             runner : ubuntu-24 .04 
8284          - target : aarch64-unknown-linux-gnu/gcc 
8385            architecture : aarch64 
84-             runner : ubuntu-22.04 
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' }} 
8588    steps :
8689      - uses : actions/checkout@v4 
90+         with :
91+           persist-credentials : false 
8792      - uses : actions/setup-python@v5 
8893        with :
8994          python-version : ' 3.11' 
@@ -104,7 +109,7 @@ jobs:
104109
105110#  The `find` line is required as a result of https://github.com/actions/runner-images/issues/9966.
106111        #  This is a bug in the macOS runner image where the pre-installed Python is installed in the same
107-         #  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
108113        #  the symlink to the pre-installed Python so that the Homebrew Python is used instead.
109114      - name : Native macOS 
110115        if : runner.os == 'macOS' 
@@ -118,43 +123,27 @@ jobs:
118123          ./python.exe -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3 
119124
120125name : Native Linux 
121-         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') 
122128        run : | 
123129          sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }} 
124130          export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH" 
125131          ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '' }} 
126132          make all --jobs 4 
127133          ./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3 
128134
129- name : Emulated Linux 
130-         if : runner.os == 'Linux' && matrix.architecture != 'x86_64' 
131-         #  The --ignorefile on ./python -m test is used to exclude tests known to fail when running on an emulated Linux.
132-         run : | 
133-           sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }} 
134-           export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH" 
135-           ./configure --prefix="$(pwd)/../build" 
136-           make install --jobs 4 
137-           make clean --jobs 4 
138-           export HOST=${{ matrix.architecture }}-linux-gnu 
139-           sudo apt install --yes "gcc-$HOST" qemu-user 
140-           export QEMU_LD_PREFIX="/usr/$HOST" 
141-           CC="$HOST-gcc" \ 
142-             CPP="$HOST-gcc --preprocess" \ 
143-             HOSTRUNNER=qemu-${{ matrix.architecture }} \ 
144-             ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '' }} --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 
145-           make all --jobs 4 
146-           ./python -m test --ignorefile=Tools/jit/ignore-tests-emulated-linux.txt --multiprocess 0 --timeout 4500 --verbose2 --verbose3 
147- 
148135jit-with-disabled-gil :
149136    name : Free-Threaded (Debug) 
150137    needs : interpreter 
151-     runs-on : ubuntu-22 .04 
138+     runs-on : ubuntu-24 .04 
152139    strategy :
153140      matrix :
154141        llvm :
155142          - 19 
156143    steps :
157144      - uses : actions/checkout@v4 
145+         with :
146+           persist-credentials : false 
158147      - uses : actions/setup-python@v5 
159148        with :
160149          python-version : ' 3.11' 
0 commit comments