diff --git a/.github/workflows/ci-ethereum-contract.yml b/.github/workflows/ci-ethereum-contract.yml index d8fcc52309..05b01e4c2b 100644 --- a/.github/workflows/ci-ethereum-contract.yml +++ b/.github/workflows/ci-ethereum-contract.yml @@ -23,6 +23,12 @@ jobs: with: node-version-file: "package.json" + # Libusb is a build requirement for the node-hid package and so pnpm + # install will fail if this isn't in the build environment and if a + # precompiled binary isn't found. + - name: Install libusb + run: sudo apt install -y libusb-1.0-0-dev libudev-dev + - uses: pnpm/action-setup@v4 name: Install pnpm with: diff --git a/.github/workflows/ci-message-buffer-idl.yml b/.github/workflows/ci-message-buffer-idl.yml index afd44ce7a8..79c3cf0fd3 100644 --- a/.github/workflows/ci-message-buffer-idl.yml +++ b/.github/workflows/ci-message-buffer-idl.yml @@ -37,6 +37,11 @@ jobs: run: anchor build - name: Copy anchor target files run: cp ./target/idl/message_buffer.json idl/ && cp ./target/types/message_buffer.ts idl/ + # Libusb is a build requirement for the node-hid package and so pnpm + # install will fail if this isn't in the build environment and if a + # precompiled binary isn't found. + - name: Install libusb + run: sudo apt install -y libusb-1.0-0-dev libudev-dev - uses: pnpm/action-setup@v4 name: Install pnpm - name: Install prettier globally diff --git a/.github/workflows/ci-turbo-build.yml b/.github/workflows/ci-turbo-build.yml index c9cf6fac32..c1b17ef91d 100644 --- a/.github/workflows/ci-turbo-build.yml +++ b/.github/workflows/ci-turbo-build.yml @@ -20,6 +20,11 @@ jobs: - uses: actions/setup-node@v4 with: node-version-file: "package.json" + # Libusb is a build requirement for the node-hid package and so pnpm + # install will fail if this isn't in the build environment and if a + # precompiled binary isn't found. + - name: Install libusb + run: sudo apt install -y libusb-1.0-0-dev libudev-dev - uses: pnpm/action-setup@v4 name: Install pnpm with: diff --git a/.github/workflows/ci-turbo-test.yml b/.github/workflows/ci-turbo-test.yml index 2214d51625..3c8b32d872 100644 --- a/.github/workflows/ci-turbo-test.yml +++ b/.github/workflows/ci-turbo-test.yml @@ -33,6 +33,11 @@ jobs: run: solana-keygen new --no-bip39-passphrase - name: Install Anchor run: RUSTFLAGS= cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 anchor-cli + # Libusb is a build requirement for the node-hid package and so pnpm + # install will fail if this isn't in the build environment and if a + # precompiled binary isn't found. + - name: Install libusb + run: sudo apt install -y libusb-1.0-0-dev libudev-dev - uses: pnpm/action-setup@v4 name: Install pnpm with: diff --git a/.github/workflows/publish-js.yml b/.github/workflows/publish-js.yml index 6b6bb2c03c..c85f0adf2e 100644 --- a/.github/workflows/publish-js.yml +++ b/.github/workflows/publish-js.yml @@ -13,6 +13,11 @@ jobs: - uses: actions/setup-node@v4 with: node-version-file: "package.json" + # Libusb is a build requirement for the node-hid package and so pnpm + # install will fail if this isn't in the build environment and if a + # precompiled binary isn't found. + - name: Install libusb + run: sudo apt install -y libusb-1.0-0-dev libudev-dev - uses: pnpm/action-setup@v4 name: Install pnpm with: