@@ -135,9 +135,8 @@ jobs:
135135 components : clippy
136136 - uses : Swatinem/rust-cache@v2
137137
138- - name : Set up the Mac environment
139- run : brew install autoconf automake libtool
140- if : runner.os == 'macOS'
138+ - name : Install macOS dependencies
139+ uses : ./.github/actions/install-macos-deps
141140
142141 - name : run clippy
143142 run : cargo clippy ${{ env.CARGO_ARGS }} --workspace --all-targets ${{ env.WORKSPACE_EXCLUDES }} -- -Dwarnings
@@ -263,13 +262,6 @@ jobs:
263262 - name : Check compilation for freebsd
264263 run : cargo check --target x86_64-unknown-freebsd ${{ env.CARGO_ARGS_NO_SSL }}
265264
266- - uses : dtolnay/rust-toolchain@stable
267- with :
268- target : x86_64-unknown-freebsd
269-
270- - name : Check compilation for freeBSD
271- run : cargo check --target x86_64-unknown-freebsd ${{ env.CARGO_ARGS_NO_SSL }}
272-
273265 - uses : dtolnay/rust-toolchain@stable
274266 with :
275267 target : wasm32-wasip2
@@ -293,7 +285,10 @@ jobs:
293285 runs-on : ${{ matrix.os }}
294286 strategy :
295287 matrix :
296- os : [macos-latest, ubuntu-latest, windows-2025]
288+ os :
289+ - macos-latest
290+ - ubuntu-latest
291+ - windows-2025
297292 fail-fast : false
298293 steps :
299294 - uses : actions/checkout@v6.0.2
@@ -302,18 +297,15 @@ jobs:
302297 - uses : actions/setup-python@v6.2.0
303298 with :
304299 python-version : ${{ env.PYTHON_VERSION }}
305- - name : Set up the Mac environment
306- run : brew install autoconf automake libtool openssl@3
307- if : runner.os == 'macOS'
308- - 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
300+
301+ - name : Install macOS dependencies
302+ uses : ./.github/actions/install-macos-deps
315303 with :
316- python-version : ${{ env.PYTHON_VERSION }}
304+ openssl : true
305+
306+ - name : build rustpython
307+ run : cargo build --release --verbose --features=threading,jit ${{ env.CARGO_ARGS }}
308+
317309 - name : run snippets
318310 run : python -m pip install -r requirements.txt && pytest -v
319311 working-directory : ./extra_tests
@@ -445,14 +437,10 @@ jobs:
445437 run : |
446438 target/release/rustpython -m venv testvenv
447439 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)
440+
441+ - name : Check whats_left is not broken
454442 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
443+ run : python -I scripts/whats_left.py $ {{ env.CARGO_ARGS }} --features jit
456444
457445 lint :
458446 name : Lint Rust & Python code
@@ -514,7 +502,7 @@ jobs:
514502 runs-on : ubuntu-latest
515503 timeout-minutes : 30
516504 env :
517- NIGHTLY_CHANNEL : nightly-2026-02-11 # https://github.com/rust-lang/miri/issues/4855
505+ NIGHTLY_CHANNEL : nightly
518506 steps :
519507 - uses : actions/checkout@v6.0.2
520508
0 commit comments