Skip to content

Commit 11e0aab

Browse files
committed
conditionally install binstall
1 parent 6a17bda commit 11e0aab

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release-node-bindings.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ jobs:
4949
name: Build - ${{ matrix.settings.target }}
5050
runs-on: ${{ matrix.settings.host }}
5151
steps:
52-
- uses: cargo-bins/cargo-binstall@main
5352
- uses: actions/checkout@v4
5453
with:
5554
ref: ${{ inputs.ref }}
@@ -73,6 +72,13 @@ jobs:
7372
uses: goto-bus-stop/setup-zig@v2
7473
with:
7574
version: 0.13.0
75+
76+
# Binstall is only needed for install cross-compilation
77+
# tools on linux
78+
- name: Install Binstall (Linux only)
79+
if: runner.os == 'Linux'
80+
uses: cargo-bins/cargo-binstall@main
81+
7682
- name: Install cargo-zigbuild (Linux only)
7783
if: runner.os == 'Linux'
7884
run: cargo binstall cargo-zigbuild -y

0 commit comments

Comments
 (0)