Skip to content

Commit 22bfeb6

Browse files
committed
fix: add libusb to github action runners that do pnpm install
1 parent 9a2f755 commit 22bfeb6

File tree

5 files changed

+26
-0
lines changed

5 files changed

+26
-0
lines changed

.github/workflows/ci-ethereum-contract.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ jobs:
2323
with:
2424
node-version-file: "package.json"
2525

26+
# Libusb is a build requirement for the node-hid package and so pnpm
27+
# install will fail if this isn't in the build environment and if a
28+
# precompiled binary isn't found.
29+
- name: Install libusb
30+
run: sudo apt install -y libusb-1.0-0-dev libudev-dev
31+
2632
- uses: pnpm/action-setup@v4
2733
name: Install pnpm
2834
with:

.github/workflows/ci-message-buffer-idl.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ jobs:
3737
run: anchor build
3838
- name: Copy anchor target files
3939
run: cp ./target/idl/message_buffer.json idl/ && cp ./target/types/message_buffer.ts idl/
40+
# Libusb is a build requirement for the node-hid package and so pnpm
41+
# install will fail if this isn't in the build environment and if a
42+
# precompiled binary isn't found.
43+
- name: Install libusb
44+
run: sudo apt install -y libusb-1.0-0-dev libudev-dev
4045
- uses: pnpm/action-setup@v4
4146
name: Install pnpm
4247
- name: Install prettier globally

.github/workflows/ci-turbo-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
- uses: actions/setup-node@v4
2121
with:
2222
node-version-file: "package.json"
23+
# Libusb is a build requirement for the node-hid package and so pnpm
24+
# install will fail if this isn't in the build environment and if a
25+
# precompiled binary isn't found.
26+
- name: Install libusb
27+
run: sudo apt install -y libusb-1.0-0-dev libudev-dev
2328
- uses: pnpm/action-setup@v4
2429
name: Install pnpm
2530
with:

.github/workflows/ci-turbo-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
run: solana-keygen new --no-bip39-passphrase
3434
- name: Install Anchor
3535
run: RUSTFLAGS= cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 anchor-cli
36+
# Libusb is a build requirement for the node-hid package and so pnpm
37+
# install will fail if this isn't in the build environment and if a
38+
# precompiled binary isn't found.
39+
- name: Install libusb
40+
run: sudo apt install -y libusb-1.0-0-dev libudev-dev
3641
- uses: pnpm/action-setup@v4
3742
name: Install pnpm
3843
with:

.github/workflows/publish-js.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ jobs:
1313
- uses: actions/setup-node@v4
1414
with:
1515
node-version-file: "package.json"
16+
# Libusb is a build requirement for the node-hid package and so pnpm
17+
# install will fail if this isn't in the build environment and if a
18+
# precompiled binary isn't found.
19+
- name: Install libusb
20+
run: sudo apt install -y libusb-1.0-0-dev libudev-dev
1621
- uses: pnpm/action-setup@v4
1722
name: Install pnpm
1823
with:

0 commit comments

Comments
 (0)