diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8fa7569..8610ffc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -81,8 +81,37 @@ jobs: - uses: actions/checkout@v2 - name: Install dependencies run: sudo apt-get install gcc-mingw-w64 binutils-mingw-w64 mingw-w64-tools + - name: Install libusb + env: + LIBUSB_VERSION: 1.0.24 + run: | + wget -c https://github.com/libusb/libusb/archive/refs/tags/v${LIBUSB_VERSION}.tar.gz + tar xzf v${LIBUSB_VERSION}.tar.gz + pushd libusb-${LIBUSB_VERSION} + autoreconf --install --force + ./configure --host=${{ matrix.arch }}-w64-mingw32 --prefix=/usr + make + make install DESTDIR=$PWD/../artifacts + popd + - name: Install hidapi + env: + HIDAPI_VERSION: 0.10.1 + run: | + wget -c https://github.com/libusb/hidapi/archive/refs/tags/hidapi-${HIDAPI_VERSION}.tar.gz + tar xzf hidapi-${HIDAPI_VERSION}.tar.gz + pushd hidapi-hidapi-${HIDAPI_VERSION} + autoreconf --install --force + ./configure --host=${{ matrix.arch }}-w64-mingw32 --prefix=/usr + make + make install DESTDIR=$PWD/../artifacts + popd - run: autoreconf --install --force - run: ./configure --host=${{ matrix.arch }}-w64-mingw32 --prefix=/usr + env: + PKG_CONFIG_LIBDIR: ${{ github.workspace }}/artifacts/usr/lib/pkgconfig + PKG_CONFIG_SYSROOT_DIR: ${{ github.workspace }}/artifacts + PKG_CONFIG_ALLOW_SYSTEM_CFLAGS: 1 + PKG_CONFIG_ALLOW_SYSTEM_LIBS: 1 - run: make - run: make distcheck - name: Package artifacts