Skip to content

Commit 39dfcb0

Browse files
committed
Install only bindgen
1 parent 385a2d4 commit 39dfcb0

File tree

1 file changed

+32
-12
lines changed

1 file changed

+32
-12
lines changed

.github/actions/action.yml

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -227,24 +227,44 @@ runs:
227227
echo "✅ Dependencies installed"
228228
echo "::endgroup::"
229229
230-
- name: Setup RUST
231-
uses: actions-rust-lang/setup-rust-toolchain@v1
232-
if: ${{ env.OP_RUST_BUILD == 'true' }}
233-
with:
234-
toolchain: "1.82.0"
230+
# - name: Setup RUST
231+
# uses: actions-rust-lang/setup-rust-toolchain@v1
232+
# if: ${{ env.OP_RUST_BUILD == 'true' }}
233+
# with:
234+
# toolchain: "1.82.0"
235+
236+
# - name: Show Rust version
237+
# shell: bash
238+
# if: ${{ env.OP_RUST_BUILD == 'true' }}
239+
# run: rustc -V
240+
241+
# - name: Install bindgen if you ever need it
242+
# shell: bash
243+
# if: ${{ env.OP_RUST_BUILD == 'true' }}
244+
# run: |
245+
# rustup toolchain install nightly
246+
# rustup default nightly
247+
# cargo +nightly install bindgen-cli --version 0.69.5
235248

236-
- name: Show Rust version
249+
- name: Install bindgen only (no rustc)
237250
shell: bash
238251
if: ${{ env.OP_RUST_BUILD == 'true' }}
239-
run: rustc -V
252+
run: |
253+
# Install bindgen via cargo (no full rustc needed)
254+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none
255+
source $HOME/.cargo/env
256+
257+
# Install bindgen CLI only (~50-100MB total)
258+
cargo install bindgen-cli --version 0.69.5
259+
260+
# Verify
261+
bindgen --version
262+
which bindgen
240263
241-
- name: Install bindgen if you ever need it
264+
- name: Show bindgen version
242265
shell: bash
243266
if: ${{ env.OP_RUST_BUILD == 'true' }}
244-
run: |
245-
rustup toolchain install nightly
246-
rustup default nightly
247-
cargo +nightly install bindgen-cli --version 0.69.5
267+
run: bindgen --version
248268

249269
- name: Setup Base Environment
250270
shell: bash

0 commit comments

Comments
 (0)