summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAiden Fox Ivey <aiden.foxivey@shopify.com>2025-09-11 23:29:30 -0400
committerTakashi Kokubun <takashikkbn@gmail.com>2025-09-11 21:51:47 -0700
commit30f85ce5302d4e8da5852726db9a2bc607b5aeec (patch)
tree8fcfcab28e87c9c9d663d19d57d97536049052fb
parent4131ace07ab604a39acd56de3597ea3e1f785c4e (diff)
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.
-rw-r--r--.github/workflows/yjit-ubuntu.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/yjit-ubuntu.yml b/.github/workflows/yjit-ubuntu.yml
index 1961d1262a..3ff3310a44 100644
--- a/.github/workflows/yjit-ubuntu.yml
+++ b/.github/workflows/yjit-ubuntu.yml
@@ -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 }}