forked from tai/fxload-win32
-
Notifications
You must be signed in to change notification settings - Fork 2
73 lines (70 loc) · 2.04 KB
/
compile.yaml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Compile fxload
on: push
jobs:
build-windows-msvc:
runs-on: windows-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install libusb
run: |
C:\vcpkg\vcpkg.exe install libusb:x64-windows
- name: Compile project
run: |
mkdir build
cd build
cmake .. -DUSE_WERROR=TRUE -DCMAKE_PREFIX_PATH=C:\vcpkg\installed\x64-windows
cmake --build .
build-windows-mingw:
runs-on: windows-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install libusb and ucrt64 GCC compiler
run: |
$env:PATH = "C:\msys64\usr\bin;$env:PATH"
pacman --noconfirm -Sy mingw-w64-ucrt-x86_64-libusb mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-ninja mingw-w64-ucrt-x86_64-cmake
- name: Compile project
run: |
$env:PATH = "C:\msys64\ucrt64\bin;C:\msys64\usr\bin;$env:PATH"
mkdir build
cd build
cmake .. -GNinja -DUSE_WERROR=TRUE -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc -DCMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++
ninja
build-mac:
runs-on: macos-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install libusb
run: |
brew install libusb ninja
- name: Compile project
run: |
mkdir build
cd build
cmake .. -GNinja -DUSE_WERROR=TRUE
ninja
build-ubuntu:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install libusb
run: |
sudo apt-get update
sudo apt-get install -y libusb-1.0-0-dev ninja-build
- name: Compile project
run: |
mkdir build
cd build
cmake .. -GNinja -DUSE_WERROR=TRUE
ninja