-
Notifications
You must be signed in to change notification settings - Fork 70
58 lines (53 loc) · 1.67 KB
/
build-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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
mingw-w64-x86_64-libelf
git
zip
mingw-w64-x86_64-meson
mingw-w64-x86_64-autotools
mingw-w64-x86_64-ca-certificates
- uses: actions/checkout@v4
with:
path: ./orbuculum
- uses: actions/checkout@v4
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@v4
with:
name: orbuculum-win64
path: ./orbuculum/build/install/**/*.*
if-no-files-found: error