-
Notifications
You must be signed in to change notification settings - Fork 28
57 lines (46 loc) · 1.47 KB
/
build.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
name: Build
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
env:
# CMake build type (Release, Debug, RelWithDebInfo)
BUILD_TYPE: Release
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: '6.3.0'
- name: Install Linux dependencies
run: sudo apt-get install -y libudev-dev
if: matrix.os == 'ubuntu-latest'
- name: Checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_PREFIX_PATH='${{env.Qt6_Dir}}/lib/cmake/' -B '${{github.workspace}}/build'
- name: Build
run: cmake --build '${{github.workspace}}/build' --config ${{env.BUILD_TYPE}}
- name: Package
run: cmake --build '${{github.workspace}}/build' --config ${{env.BUILD_TYPE}} --target artefact
- name: Upload Windows
uses: actions/upload-artifact@v3
if: matrix.os == 'windows-latest'
with:
name: robocut_windows
path: ${{github.workspace}}/build/*-*.zip
- name: Upload Mac
uses: actions/upload-artifact@v3
if: matrix.os == 'macos-latest'
with:
name: robocut_mac
path: ${{github.workspace}}/build/*-*.dmg