Skip to content

Commit 3812cd2

Browse files
everoddandevenwoodserclaude
committed
ci: install archived hidapi and libusb on windows, removed from msys2 mingw64
MSYS2 dropped mingw64 for hidapi and libusb in October, so pacman fails in the setup-msys2 step with "target not found" and the Windows jobs never reach the build. Remove them from the install list and install the archived packages from repo.msys2.org with pacman -U, checking sha256. Also update the Windows instructions in the README, which still listed both packages and linked an ICU build that no longer exists. Same approach as woodser/monero-cpp#174. Co-authored-by: woodser <13068859+woodser@users.noreply.github.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent 01bbaad commit 3812cd2

3 files changed

Lines changed: 33 additions & 11 deletions

File tree

‎.github/workflows/build-windows.yml‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,8 @@ jobs:
4848
mingw-w64-x86_64-openssl
4949
mingw-w64-x86_64-zeromq
5050
mingw-w64-x86_64-libsodium
51-
mingw-w64-x86_64-hidapi
5251
mingw-w64-x86_64-unbound
5352
mingw-w64-x86_64-protobuf
54-
mingw-w64-x86_64-libusb
5553
mingw-w64-x86_64-ntldd
5654
mingw-w64-x86_64-ccache
5755
git
@@ -106,6 +104,15 @@ jobs:
106104
echo "8486a018aca2e56d1fcd2eed2069011f2e1da02e03af72b38916ee06cbe7203f mingw-w64-x86_64-icu-78.3-4-any.pkg.tar.zst" | sha256sum -c
107105
pacman -U --noconfirm mingw-w64-x86_64-icu-78.3-4-any.pkg.tar.zst
108106
107+
- name: Install hidapi v0.15.0 and libusb v1.0.30
108+
run: |
109+
# dropped from the msys2 mingw64 repo, install the archived packages
110+
wget https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-hidapi-0.15.0-2-any.pkg.tar.zst
111+
echo "89fb61549a437d65076a092a367fcb264fc7045ee9ebef48cd81f5a76a5588f8 mingw-w64-x86_64-hidapi-0.15.0-2-any.pkg.tar.zst" | sha256sum -c
112+
wget https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-libusb-1.0.30-1-any.pkg.tar.zst
113+
echo "124edc26b009678a4c5e759481a364abf63ed7f2f49a53092e8bd0a47c0c0740 mingw-w64-x86_64-libusb-1.0.30-1-any.pkg.tar.zst" | sha256sum -c
114+
pacman -U --noconfirm mingw-w64-x86_64-hidapi-0.15.0-2-any.pkg.tar.zst mingw-w64-x86_64-libusb-1.0.30-1-any.pkg.tar.zst
115+
109116
- name: Install boost v1.92.0
110117
run: |
111118
wget https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-boost-1.92.0-3-any.pkg.tar.zst

‎.github/workflows/test.yml‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,8 @@ jobs:
219219
mingw-w64-x86_64-openssl
220220
mingw-w64-x86_64-zeromq
221221
mingw-w64-x86_64-libsodium
222-
mingw-w64-x86_64-hidapi
223222
mingw-w64-x86_64-unbound
224223
mingw-w64-x86_64-protobuf
225-
mingw-w64-x86_64-libusb
226224
mingw-w64-x86_64-ntldd
227225
mingw-w64-x86_64-ccache
228226
git
@@ -277,6 +275,15 @@ jobs:
277275
echo "8486a018aca2e56d1fcd2eed2069011f2e1da02e03af72b38916ee06cbe7203f mingw-w64-x86_64-icu-78.3-4-any.pkg.tar.zst" | sha256sum -c
278276
pacman -U --noconfirm mingw-w64-x86_64-icu-78.3-4-any.pkg.tar.zst
279277
278+
- name: Install hidapi v0.15.0 and libusb v1.0.30
279+
run: |
280+
# dropped from the msys2 mingw64 repo, install the archived packages
281+
wget https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-hidapi-0.15.0-2-any.pkg.tar.zst
282+
echo "89fb61549a437d65076a092a367fcb264fc7045ee9ebef48cd81f5a76a5588f8 mingw-w64-x86_64-hidapi-0.15.0-2-any.pkg.tar.zst" | sha256sum -c
283+
wget https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-libusb-1.0.30-1-any.pkg.tar.zst
284+
echo "124edc26b009678a4c5e759481a364abf63ed7f2f49a53092e8bd0a47c0c0740 mingw-w64-x86_64-libusb-1.0.30-1-any.pkg.tar.zst" | sha256sum -c
285+
pacman -U --noconfirm mingw-w64-x86_64-hidapi-0.15.0-2-any.pkg.tar.zst mingw-w64-x86_64-libusb-1.0.30-1-any.pkg.tar.zst
286+
280287
- name: Install boost v1.92.0
281288
run: |
282289
wget https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-boost-1.92.0-3-any.pkg.tar.zst

‎README.md‎

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,21 @@ wallet_full.close(True)
157157
4. Relaunch MSYS2 (if necessary) and install dependencies:
158158

159159
```
160-
pacman -S mingw-w64-x86_64-toolchain make mingw-w64-x86_64-cmake mingw-w64-x86_64-openssl mingw-w64-x86_64-zeromq mingw-w64-x86_64-libsodium mingw-w64-x86_64-hidapi mingw-w64-x86_64-unbound mingw-w64-x86_64-protobuf git mingw-w64-x86_64-libusb gettext base-devel
161-
wget https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-icu-75.1-2-any.pkg.tar.zst
162-
pacman -U mingw-w64-x86_64-icu-75.1-2-any.pkg.tar.zst
163-
wget https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-boost-1.87.0-3-any.pkg.tar.zst
164-
pacman -U mingw-w64-x86_64-boost-1.87.0-3-any.pkg.tar.zst
165-
wget https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-pybind11-2.13.6-2-any.pkg.tar.zst
166-
pacman -U mingw-w64-x86_64-pybind11-2.13.6-2-any.pkg.tar.zst
160+
pacman -S mingw-w64-x86_64-toolchain make mingw-w64-x86_64-cmake mingw-w64-x86_64-openssl mingw-w64-x86_64-zeromq mingw-w64-x86_64-libsodium mingw-w64-x86_64-unbound mingw-w64-x86_64-protobuf git gettext base-devel wget
161+
wget https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-icu-78.3-4-any.pkg.tar.zst
162+
echo "8486a018aca2e56d1fcd2eed2069011f2e1da02e03af72b38916ee06cbe7203f mingw-w64-x86_64-icu-78.3-4-any.pkg.tar.zst" | sha256sum -c
163+
pacman -U mingw-w64-x86_64-icu-78.3-4-any.pkg.tar.zst
164+
# hidapi and libusb were removed from the msys2 mingw64 repo, install the archived packages
165+
wget https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-hidapi-0.15.0-2-any.pkg.tar.zst https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-libusb-1.0.30-1-any.pkg.tar.zst
166+
echo "89fb61549a437d65076a092a367fcb264fc7045ee9ebef48cd81f5a76a5588f8 mingw-w64-x86_64-hidapi-0.15.0-2-any.pkg.tar.zst" | sha256sum -c
167+
echo "124edc26b009678a4c5e759481a364abf63ed7f2f49a53092e8bd0a47c0c0740 mingw-w64-x86_64-libusb-1.0.30-1-any.pkg.tar.zst" | sha256sum -c
168+
pacman -U mingw-w64-x86_64-hidapi-0.15.0-2-any.pkg.tar.zst mingw-w64-x86_64-libusb-1.0.30-1-any.pkg.tar.zst
169+
wget https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-boost-1.92.0-3-any.pkg.tar.zst
170+
echo "8d5a7621778e955a52755940fe16ead78c0e57a2ff443418b43c25388df1ba2a mingw-w64-x86_64-boost-1.92.0-3-any.pkg.tar.zst" | sha256sum -c
171+
pacman -U mingw-w64-x86_64-boost-1.92.0-3-any.pkg.tar.zst
172+
wget https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64-pybind11-2.13.6-2-any.pkg.tar.zst
173+
echo "5b56ad87bc544336b2d51edb8bb0614f46542571362daf4d7e53bf23120175a1 mingw-w64-x86_64-pybind11-2.13.6-2-any.pkg.tar.zst" | sha256sum -c
174+
pacman -U mingw-w64-x86_64-pybind11-2.13.6-2-any.pkg.tar.zst
167175
```
168176

169177
5. Clone repo: `git clone --recurse-submodules https://github.com/everoddandeven/monero-python.git`

0 commit comments

Comments
 (0)