-
Notifications
You must be signed in to change notification settings - Fork 13
145 lines (127 loc) · 3.86 KB
/
test.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# vim: sw=2
name: Test
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
ubuntu-qt5:
name: Qt 5.15.2 / Ubuntu 22.04
runs-on: ubuntu-22.04
env:
CFLAGS: -fsanitize=address,undefined
CXXFLAGS: -fsanitize=address,undefined
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup CMake
uses: ./.github/actions/cmake
with:
qt_version: 5.15.2
use_qt6: OFF
modules: ""
- name: Build and test
uses: ./.github/actions/build-and-test
ubuntu-qt6-5:
name: Qt 6.5.3 / Ubuntu 22.04
runs-on: ubuntu-22.04
env:
CFLAGS: -fsanitize=address,undefined
CXXFLAGS: -fsanitize=address,undefined
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup CMake
uses: ./.github/actions/cmake
with:
qt_version: 6.5.3
use_qt6: ON
modules: qtserialport qtwebsockets
- name: Build and test
uses: ./.github/actions/build-and-test
ubuntu-qt6-7:
name: Qt 6.7.3 / Ubuntu 22.04
runs-on: ubuntu-22.04
env:
CFLAGS: -fsanitize=address,undefined
CXXFLAGS: -fsanitize=address,undefined
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup CMake
uses: ./.github/actions/cmake
with:
qt_version: 6.7.3
qt_arch: linux_gcc_64
use_qt6: ON
modules: qtserialport qtwebsockets
- name: Build and test
uses: ./.github/actions/build-and-test
windows:
name: Qt 6.7.2 / Windows
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup CMake
uses: ./.github/actions/cmake
with:
qt_version: 6.7.2
qt_arch: win64_mingw
use_qt6: ON
modules: qtserialport qtwebsockets
# Need to get all binaries in the same directory, otherwise the tests can't find the dlls.
additional_cmake_args: |
-DLIBSHV_WITH_LDAP=OFF \
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY='${{github.workspace}}/build/bin' \
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY='${{github.workspace}}/build/bin'
- name: Build and test
uses: ./.github/actions/build-and-test
android:
name: Qt 6.7.3 / Android
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup CMake
uses: ./.github/actions/cmake
with:
qt_version: 6.7.3
qt_arch: android_arm64_v8a
use_qt6: ON
modules: qtserialport qtwebsockets
additional_cmake_args: -DLIBSHV_WITH_LDAP=OFF
- name: Build and test
uses: ./.github/actions/build-and-test
nix:
name: Qt 6.6.2 / NixOS
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Nix
uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Build
run: nix --experimental-features 'nix-command flakes' build -L .
- name: Build Full
run: nix --experimental-features 'nix-command flakes' build -L .#full
- name: Build CLI
run: nix --experimental-features 'nix-command flakes' build -L .#cli
- name: Build for clients
run: nix --experimental-features 'nix-command flakes' build -L .#forClients
- name: Flake check
run: nix --experimental-features 'nix-command flakes' flake check .
- name: Format
run: nix --experimental-features 'nix-command flakes' fmt && git diff --exit-code