ci: install libusb/pkg-config on ubuntu & macOS for hidapi build

This commit is contained in:
MoCipher 2026-02-20 08:51:59 +01:00
parent 862c2bfc15
commit c0787c9d61

View file

@ -24,6 +24,19 @@ jobs:
with: with:
path: ~/.cargo/registry path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ matrix.rust }} key: ${{ runner.os }}-cargo-registry-${{ matrix.rust }}
- name: Install system packages (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libusb-1.0-0-dev pkg-config libudev-dev
- name: Install system packages (macOS)
if: matrix.os == 'macos-latest'
run: |
brew update || true
brew install libusb pkg-config || true
- name: Build - name: Build
run: cargo build --workspace --verbose run: cargo build --workspace --verbose
- name: Run Rust tests - name: Run Rust tests