-
-
Notifications
You must be signed in to change notification settings - Fork 5
78 lines (67 loc) · 1.91 KB
/
Copy pathci.yaml
File metadata and controls
78 lines (67 loc) · 1.91 KB
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
name: CI
on:
push:
branches: [master]
pull_request:
jobs:
build-test:
name: build-test (${{ matrix.compiler }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
compiler: [gcc, clang]
steps:
- uses: actions/checkout@v5
- name: Install common build dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
cmake \
ninja-build \
qt6-base-dev \
qt6-base-dev-tools \
qt6-tools-dev \
qt6-tools-dev-tools
- name: Install GCC 14
if: matrix.compiler == 'gcc'
run: sudo apt-get install -y gcc-14 g++-14
- name: Install Clang
if: matrix.compiler == 'clang'
run: sudo apt-get install -y clang
- name: Configure (GCC)
if: matrix.compiler == 'gcc'
run: |
cmake -S . -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=gcc-14 \
-DCMAKE_CXX_COMPILER=g++-14
- name: Configure (Clang)
if: matrix.compiler == 'clang'
run: |
cmake -S . -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++
- name: Build
run: cmake --build build --parallel
debian-package-check:
name: debian package build canary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install packaging dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
devscripts \
debhelper \
build-essential \
cmake \
ninja-build \
qt6-base-dev \
qt6-base-dev-tools \
qt6-tools-dev \
qt6-tools-dev-tools
- name: Build binary package (unsigned)
run: debuild -us -uc -b