@@ -28,7 +28,7 @@ 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
5454 - x86_64-apple-darwin/clang
5555 - aarch64-apple-darwin/clang
5656 - x86_64-unknown-linux-gnu/gcc
57- - x86_64-unknown-linux-gnu/clang
5857 - aarch64-unknown-linux-gnu/gcc
59- - aarch64-unknown-linux-gnu/clang
6058 debug :
6159 - true
6260 - false
@@ -66,41 +64,25 @@ jobs:
6664 - target : i686-pc-windows-msvc/msvc
6765 architecture : Win32
6866 runner : windows-latest
69- compiler : msvc
7067 - target : x86_64-pc-windows-msvc/msvc
7168 architecture : x64
7269 runner : windows-latest
73- compiler : msvc
7470 - target : aarch64-pc-windows-msvc/msvc
7571 architecture : ARM64
7672 runner : windows-latest
77- compiler : msvc
7873 - target : x86_64-apple-darwin/clang
7974 architecture : x86_64
8075 runner : macos-13
81- compiler : clang
8276 - target : aarch64-apple-darwin/clang
8377 architecture : aarch64
8478 runner : macos-14
85- compiler : clang
8679 - target : x86_64-unknown-linux-gnu/gcc
8780 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
81+ runner : ubuntu-24.04
9482 - target : aarch64-unknown-linux-gnu/gcc
9583 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 }}
84+ # Forks don't have access to our paid AArch64 runners. These jobs are skipped below:
85+ runner : ${{ github.repository_owner == 'python' && 'ubuntu-24.04-aarch64' || 'ubuntu-24.04' }}
10486 steps :
10587 - uses : actions/checkout@v4
10688 - uses : actions/setup-python@v5
@@ -111,10 +93,10 @@ jobs:
11193 if : runner.os == 'Windows' && matrix.architecture != 'ARM64'
11294 run : |
11395 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 }}
96+ ./PCbuild/build.bat --experimental-jit ${{ matrix.debug && '-d' || '' }} -p ${{ matrix.architecture }}
11597 ./PCbuild/rt.bat ${{ matrix.debug && '-d' || '' }} -p ${{ matrix.architecture }} -q --multiprocess 0 --timeout 4500 --verbose2 --verbose3
11698
117- # No PGO or tests (yet):
99+ # No tests (yet):
118100 - name : Emulated Windows
119101 if : runner.os == 'Windows' && matrix.architecture == 'ARM64'
120102 run : |
@@ -123,7 +105,7 @@ jobs:
123105
124106 # The `find` line is required as a result of https://github.com/actions/runner-images/issues/9966.
125107 # 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
108+ # directory as the Homebrew Python, which causes the build to fail for macos-13. This line removes
127109 # the symlink to the pre-installed Python so that the Homebrew Python is used instead.
128110 - name : Native macOS
129111 if : runner.os == 'macOS'
@@ -132,44 +114,24 @@ jobs:
132114 find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
133115 brew install llvm@${{ matrix.llvm }}
134116 export SDKROOT="$(xcrun --show-sdk-path)"
135- ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '--enable-optimizations --with-lto ' }}
117+ ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '' }}
136118 make all --jobs 4
137119 ./python.exe -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
138120
139121 - name : Native Linux
140- if : runner.os == 'Linux' && matrix.architecture == 'x86_64'
122+ # Forks don't have access to our paid AArch64 runners. Skip those:
123+ if : runner.os == 'Linux' && (matrix.architecture == 'x86_64' || github.repository_owner == 'python')
141124 run : |
142125 sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
143126 export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
144- ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '--enable-optimizations --with-lto ' }}
127+ ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '' }}
145128 make all --jobs 4
146129 ./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
147130
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-
169131 jit-with-disabled-gil :
170132 name : Free-Threaded (Debug)
171133 needs : interpreter
172- runs-on : ubuntu-22 .04
134+ runs-on : ubuntu-24 .04
173135 strategy :
174136 matrix :
175137 llvm :
0 commit comments