Emergency commit due to duff laptop. Do not use #269
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Windows binaries | |
on: | |
- push | |
- pull_request | |
jobs: | |
win64: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
msystem: MINGW64 | |
install: >- | |
base-devel | |
mingw-w64-x86_64-toolchain | |
mingw-w64-x86_64-zeromq | |
mingw-w64-x86_64-SDL2 | |
git | |
zip | |
mingw-w64-x86_64-meson | |
mingw-w64-x86_64-autotools | |
- uses: actions/checkout@v3 | |
with: | |
path: ./orbuculum | |
- uses: actions/checkout@v3 | |
with: | |
path: ./libusb/src | |
repository: Novakov/libusb | |
ref: d67cf6868b91c5972aa4225caf9b924f25a9bda6 | |
- run: ./bootstrap.sh | |
working-directory: ./libusb/src | |
- run: mkdir ./libusb/build | |
- run: ../src/configure --prefix=`realpath ../install` | |
working-directory: ./libusb/build | |
- run: make -j4 install | |
working-directory: ./libusb/build | |
- run: "export PKG_CONFIG_PATH=`realpath ../libusb/install/lib/pkgconfig` && meson setup ./build --prefix A:/" | |
working-directory: ./orbuculum | |
- run: ninja -C ./build | |
working-directory: ./orbuculum | |
- run: meson install -C ./build --destdir ./install --strip | |
working-directory: ./orbuculum | |
- run: cp ./libusb/install/bin/libusb-1.0.dll ./orbuculum/build/install/bin | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: orbuculum-win64 | |
path: ./orbuculum/build/install/**/*.* | |
if-no-files-found: error | |