@@ -28,7 +28,7 @@ concurrency:
2828jobs :
2929 interpreter :
3030 name : Interpreter (Debug)
31- runs-on : ubuntu-latest
31+ runs-on : ubuntu-22.04
3232 timeout-minutes : 90
3333 steps :
3434 - uses : actions/checkout@v4
@@ -54,53 +54,34 @@ jobs:
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
6361 llvm :
64- - 18
62+ - 19
6563 include :
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-latest
89- compiler : gcc
90- - target : x86_64-unknown-linux-gnu/clang
91- architecture : x86_64
92- runner : ubuntu-latest
93- compiler : clang
81+ runner : ubuntu-22.04
9482 - target : aarch64-unknown-linux-gnu/gcc
9583 architecture : aarch64
96- runner : ubuntu-latest
97- compiler : gcc
98- - target : aarch64-unknown-linux-gnu/clang
99- architecture : aarch64
100- runner : ubuntu-latest
101- compiler : clang
102- env :
103- CC : ${{ matrix.compiler }}
84+ runner : ubuntu-22.04
10485 steps :
10586 - uses : actions/checkout@v4
10687 - uses : actions/setup-python@v5
@@ -111,23 +92,28 @@ jobs:
11192 if : runner.os == 'Windows' && matrix.architecture != 'ARM64'
11293 run : |
11394 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 }}
95+ ./PCbuild/build.bat --experimental-jit ${{ matrix.debug && '-d' || '' }} -p ${{ matrix.architecture }}
11596 ./PCbuild/rt.bat ${{ matrix.debug && '-d' || '' }} -p ${{ matrix.architecture }} -q --multiprocess 0 --timeout 4500 --verbose2 --verbose3
11697
117- # No PGO or tests (yet):
98+ # No tests (yet):
11899 - name : Emulated Windows
119100 if : runner.os == 'Windows' && matrix.architecture == 'ARM64'
120101 run : |
121102 choco install llvm --allow-downgrade --no-progress --version ${{ matrix.llvm }}.1.0
122103 ./PCbuild/build.bat --experimental-jit ${{ matrix.debug && '-d' || '' }} -p ${{ matrix.architecture }}
123104
105+ # The `find` line is required as a result of https://github.com/actions/runner-images/issues/9966.
106+ # 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
108+ # the symlink to the pre-installed Python so that the Homebrew Python is used instead.
124109 - name : Native macOS
125110 if : runner.os == 'macOS'
126111 run : |
127112 brew update
113+ find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
128114 brew install llvm@${{ matrix.llvm }}
129- SDKROOT="$(xcrun --show-sdk-path)" \
130- ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '--enable-optimizations --with-lto ' }}
115+ export SDKROOT="$(xcrun --show-sdk-path)"
116+ ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '' }}
131117 make all --jobs 4
132118 ./python.exe -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
133119
@@ -136,7 +122,7 @@ jobs:
136122 run : |
137123 sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
138124 export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
139- ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '--enable-optimizations --with-lto ' }}
125+ ./configure --enable-experimental-jit ${{ matrix.debug && '--with-pydebug' || '' }}
140126 make all --jobs 4
141127 ./python -m test --multiprocess 0 --timeout 4500 --verbose2 --verbose3
142128
@@ -151,29 +137,31 @@ jobs:
151137 make clean --jobs 4
152138 export HOST=${{ matrix.architecture }}-linux-gnu
153139 sudo apt install --yes "gcc-$HOST" qemu-user
154- ${{ !matrix.debug && matrix.compiler == 'clang' && './configure --enable-optimizations' || '' }}
155- ${{ !matrix.debug && matrix.compiler == 'clang' && 'make profile-run-stamp --jobs 4' || '' }}
156140 export QEMU_LD_PREFIX="/usr/$HOST"
157- CC="${{ matrix.compiler == 'clang' && 'clang --target=$ HOST' || '$HOST -gcc' }} " \
158- CPP="$CC --preprocess" \
141+ CC="$HOST-gcc" \
142+ CPP="$HOST-gcc --preprocess" \
159143 HOSTRUNNER=qemu-${{ matrix.architecture }} \
160- ./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
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
161145 make all --jobs 4
162146 ./python -m test --ignorefile=Tools/jit/ignore-tests-emulated-linux.txt --multiprocess 0 --timeout 4500 --verbose2 --verbose3
163147
164148 jit-with-disabled-gil :
165149 name : Free-Threaded (Debug)
166150 needs : interpreter
167- runs-on : ubuntu-latest
151+ runs-on : ubuntu-22.04
152+ strategy :
153+ matrix :
154+ llvm :
155+ - 19
168156 steps :
169157 - uses : actions/checkout@v4
170158 - uses : actions/setup-python@v5
171159 with :
172160 python-version : ' 3.11'
173161 - name : Build with JIT enabled and GIL disabled
174162 run : |
175- sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh 18
176- export PATH="$(llvm-config-18 --bindir):$PATH"
163+ sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" ./llvm.sh ${{ matrix.llvm }}
164+ export PATH="$(llvm-config-${{ matrix.llvm }} --bindir):$PATH"
177165 ./configure --enable-experimental-jit --with-pydebug --disable-gil
178166 make all --jobs 4
179167 - name : Run tests
0 commit comments