@@ -293,7 +293,13 @@ jobs:
293293 runs-on : ${{ matrix.os }}
294294 strategy :
295295 matrix :
296- os : [macos-latest, ubuntu-latest, windows-2025]
296+ include :
297+ - os : macos-latest
298+ cargo_args : " " # TODO: Fix jit on macOS
299+ - os : ubuntu-latest
300+ cargo_args : " --features jit"
301+ - os : windows-2025
302+ cargo_args : " --features jit"
297303 fail-fast : false
298304 steps :
299305 - uses : actions/checkout@v6.0.2
@@ -302,18 +308,14 @@ jobs:
302308 - uses : actions/setup-python@v6.2.0
303309 with :
304310 python-version : ${{ env.PYTHON_VERSION }}
311+
305312 - name : Set up the Mac environment
306313 run : brew install autoconf automake libtool openssl@3
307314 if : runner.os == 'macOS'
315+
308316 - name : build rustpython
309- run : cargo build --release --verbose --features=threading ${{ env.CARGO_ARGS }}
310- if : runner.os == 'macOS'
311- - name : build rustpython
312- run : cargo build --release --verbose --features=threading ${{ env.CARGO_ARGS }},jit
313- if : runner.os != 'macOS'
314- - uses : actions/setup-python@v6.2.0
315- with :
316- python-version : ${{ env.PYTHON_VERSION }}
317+ run : cargo build --release --verbose --features=threading ${{ env.CARGO_ARGS }} ${{ matrix.cargo_args }}
318+
317319 - name : run snippets
318320 run : python -m pip install -r requirements.txt && pytest -v
319321 working-directory : ./extra_tests
@@ -445,14 +447,10 @@ jobs:
445447 run : |
446448 target/release/rustpython -m venv testvenv
447449 testvenv/bin/rustpython -m pip install wheel
448- - if : runner.os != 'macOS'
449- name : Check whats_left is not broken
450- shell : bash
451- run : python -I scripts/whats_left.py --no-default-features --features "$(sed -e 's/--[^ ]*//g' <<< "${{ env.CARGO_ARGS }}" | tr -d '[:space:]'),threading,jit"
452- - if : runner.os == 'macOS' # TODO fix jit on macOS
453- name : Check whats_left is not broken (macOS)
450+
451+ - name : Check whats_left is not broken
454452 shell : bash
455- run : python -I scripts/whats_left.py --no-default-features --features "$(sed -e 's/--[^ ]*//g' <<< "$ {{ env.CARGO_ARGS }}" | tr -d '[:space:]'),threading" # no jit on macOS for now
453+ run : python -I scripts/whats_left.py $ {{ env.CARGO_ARGS }} ${{ matrix.cargo_args }}
456454
457455 lint :
458456 name : Lint Rust & Python code
0 commit comments