CI: Add MinGW build on MSYS2 (Windows)

Closes 

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
This commit is contained in:
Tormod Volden 2022-03-28 15:37:28 +02:00
parent 78de7dc4b9
commit 385eaafba1
2 changed files with 22 additions and 1 deletions
.github/workflows
libusb

21
.github/workflows/msys2.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: MSYS2 build
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: git mingw-w64-x86_64-cc mingw-w64-x86_64-autotools
- name: CI-Build
run: |
echo 'Running in MSYS2!'
./bootstrap.sh
./.private/ci-build.sh --build-dir build-msys2

View file

@ -1 +1 @@
#define LIBUSB_NANO 11717
#define LIBUSB_NANO 11718