-
Notifications
You must be signed in to change notification settings - Fork 16
44 lines (39 loc) · 1.04 KB
/
linux.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
name: linux
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
qt_version: [5.15.2]
platform: [ubuntu-latest]
arch: [x64]
fail-fast: false
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Installing Qt
uses: jurplel/[email protected]
with:
version: ${{ matrix.qt_version }}
arch: ${{ matrix.qtarch }}
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- name: Build GUI
shell: bash
run: |
sudo apt install libgl-dev libx11-dev libxkbcommon-x11-dev
mkdir build-gui
cd build-gui
cmake ..
cmake --build . --parallel
ctest --output-on-failure
- name: Build CLI
shell: bash
run: |
mkdir build-cli
cd build-cli
cmake -DBUILD_CLI:BOOL=ON ..
cmake --build . --parallel
ctest --output-on-failure