Skip to content

Commit 28ef398

Browse files
dainnilssonCopilot
andcommitted
Fix CI: add missing system deps and QEMU setup
- Add libudev-dev to Ubuntu apt installs (needed by hidapi crate) - Add system deps to docs and MDS3 workflow jobs - Add QEMU setup step for aarch64 cross-compilation wheels - Skip pre-commit on Windows x86 (cargo tools need x64) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c350807 commit 28ef398

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ jobs:
4040
- name: Install dependencies
4141
if: "startsWith(matrix.os, 'ubuntu')"
4242
run: |
43-
sudo apt-get install -qq swig libpcsclite-dev
43+
sudo apt-get install -qq swig libpcsclite-dev libudev-dev
4444
4545
- name: Install the project
4646
run: uv sync --all-extras
4747

4848
- name: Run pre-commit
49-
if: "!startsWith(matrix.python, 'pypy')"
49+
if: "!startsWith(matrix.python, 'pypy') && matrix.architecture != 'x86'"
5050
shell: bash
5151
run: |
5252
uv tool install pre-commit
@@ -95,6 +95,12 @@ jobs:
9595
steps:
9696
- uses: actions/checkout@v6
9797

98+
- name: Set up QEMU
99+
if: matrix.target == 'aarch64'
100+
uses: docker/setup-qemu-action@v3
101+
with:
102+
platforms: arm64
103+
98104
- name: Set up Python
99105
if: matrix.os != 'ubuntu-latest'
100106
uses: actions/setup-python@v6
@@ -137,6 +143,10 @@ jobs:
137143
with:
138144
python-version: 3.14
139145

146+
- name: Install dependencies
147+
run: |
148+
sudo apt-get install -qq swig libpcsclite-dev libudev-dev
149+
140150
- name: Build sphinx documentation
141151
run: uv run make -C docs/ html
142152

.github/workflows/mds3-verification.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Install dependencies
3434
run: |
35-
sudo apt-get install -qq swig libpcsclite-dev
35+
sudo apt-get install -qq swig libpcsclite-dev libudev-dev
3636
uv sync --all-extras
3737
3838
- name: Download MDS3 blob

0 commit comments

Comments
 (0)