File tree Expand file tree Collapse file tree 5 files changed +26
-0
lines changed Expand file tree Collapse file tree 5 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 23
23
with :
24
24
node-version-file : " package.json"
25
25
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
+
26
32
- uses : pnpm/action-setup@v4
27
33
name : Install pnpm
28
34
with :
Original file line number Diff line number Diff line change 37
37
run : anchor build
38
38
- name : Copy anchor target files
39
39
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
40
45
- uses : pnpm/action-setup@v4
41
46
name : Install pnpm
42
47
- name : Install prettier globally
Original file line number Diff line number Diff line change 20
20
- uses : actions/setup-node@v4
21
21
with :
22
22
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
23
28
- uses : pnpm/action-setup@v4
24
29
name : Install pnpm
25
30
with :
Original file line number Diff line number Diff line change 33
33
run : solana-keygen new --no-bip39-passphrase
34
34
- name : Install Anchor
35
35
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
36
41
- uses : pnpm/action-setup@v4
37
42
name : Install pnpm
38
43
with :
Original file line number Diff line number Diff line change 13
13
- uses : actions/setup-node@v4
14
14
with :
15
15
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
16
21
- uses : pnpm/action-setup@v4
17
22
name : Install pnpm
18
23
with :
You can’t perform that action at this time.
0 commit comments