YJIT: Remove cargo from release builds

* Release builds depend only on `rustc` for sake of packaging. Removing
it from the image ensures that passing the CI implies that only `rustc`
is required.
This commit is contained in:
Aiden Fox Ivey 2025-09-11 23:29:30 -04:00 committed by Takashi Kokubun
parent 4131ace07a
commit 30f85ce530

View File

@ -145,6 +145,12 @@ jobs:
if: ${{ matrix.rust_version }}
run: rustup install ${{ matrix.rust_version }} --profile minimal
- name: Remove cargo
# Since this tests a `rustc` build for release, remove `cargo` to ensure
# that only `rustc` is used.
if: ${{ contains(matrix.configure, 'rustc') }}
run: sudo rm $(which -a cargo | uniq)
- name: Run configure
run: ../src/configure -C --disable-install-doc --prefix=$(pwd)/install ${{ matrix.configure }}