-
-
Notifications
You must be signed in to change notification settings - Fork 19
84 lines (75 loc) · 2.09 KB
/
build.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Build
on:
push:
branches: [ master ]
paths-ignore:
- '*.md'
- 'screenshots/*.md'
- 'screenshots/*.png'
pull_request:
branches: [ master ]
paths-ignore:
- '*.md'
- 'screenshots/*.md'
- 'screenshots/*.png'
env:
QT_VERSION: '6.5'
jobs:
linux-x64:
runs-on: ubuntu-20.04
steps:
- name: "Checkout"
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ env.QT_VERSION }}
arch: 'gcc_64'
tools: 'tools_ninja'
- name: Install libhidapi dependency
run: |
sudo apt-get -y install libudev-dev
- name: Build
run: |
cmake -B build -S . -G Ninja -DCMAKE_MAKE_PROGRAM="${IQTA_TOOLS}/Ninja/ninja"
cmake --build build
windows-x64:
runs-on: windows-2019
steps:
- name: "Checkout"
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ env.QT_VERSION }}
arch: 'win64_mingw'
tools: 'tools_ninja tools_mingw90'
- name: Build
run: |
${env:IQTA_TOOLS} = ${env:IQTA_TOOLS} -replace '\\', '/'
cmake -B build -S . -G Ninja `
-DCMAKE_C_COMPILER="${env:IQTA_TOOLS}/mingw1120_64/bin/gcc.exe" `
-DCMAKE_CXX_COMPILER="${env:IQTA_TOOLS}/mingw1120_64/bin/g++.exe" `
-DCMAKE_MAKE_PROGRAM="${env:IQTA_TOOLS}/Ninja/ninja.exe"
cmake --build build
macos:
runs-on: macos-11
steps:
- name: "Checkout"
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ env.QT_VERSION }}
arch: 'clang_64'
tools: 'tools_ninja'
- name: Build
run: |
cmake -B build -S . -G Ninja -DCMAKE_MAKE_PROGRAM="${IQTA_TOOLS}/Ninja/ninja"
cmake --build build