-
Notifications
You must be signed in to change notification settings - Fork 60
128 lines (110 loc) · 3.34 KB
/
clang.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
name: Clang Tests
on: [push, pull_request]
jobs:
osx-qmake:
name: "OSX QMake Qt5 ${{ matrix.std_cpp }}"
strategy:
fail-fast: false
matrix:
include:
- std_cpp: C++17
- std_cpp: C++14
runs-on: "macos-10.15"
env:
QMAKESPEC: macx-clang
steps:
- name: Install Qt
run: |
HOMEBREW_NO_AUTO_UPDATE=1 brew install qt5
brew link qt5 --force
which qmake
qmake --version
- name: Git Checkout
uses: actions/checkout@v2
- run: qmake -r "CONFIG+=${{ matrix.std_cpp }}"
- run: make -j
- run: make check
docker-qbs:
name: "Docker Qbs ${{ matrix.image }}"
strategy:
fail-fast: false
matrix:
include:
- image: arbmind/qbs-clang-libstdcpp-qt:1.22.0-14-11-6.3.0
- image: arbmind/qbs-clang-libstdcpp-qt:1.21.0-13-10-6.2.4
- image: arbmind/qbs-clang13-qt515:latest
- image: arbmind/qbs-clang8-qt512:1
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Build & Test
run: >-
docker run --rm -v ${GITHUB_WORKSPACE}:/build -w /build
${{ matrix.image }}
build
--file /build/verdigris.qbs
--build-directory /tmp/build
-p autotest-runner
linux-qmake:
name: "${{ matrix.host_system }} QMake Clang ${{ matrix.clang_version }} Qt ${{ matrix.qt_version }} ${{ matrix.std_cpp }}"
strategy:
fail-fast: false
matrix:
include:
- host_system: ubuntu-20.04
clang_version: 12
qt_version: 6.3.0
qt_arch: gcc_64
std_cpp: C++20
- host_system: ubuntu-20.04
clang_version: 12
qt_version: 6.2.2
qt_arch: gcc_64
std_cpp: C++20
- host_system: ubuntu-20.04
clang_version: 11
qt_version: 6.0.0
qt_arch: gcc_64
std_cpp: C++17
- host_system: ubuntu-20.04
clang_version: 10
qt_version: 5.15.2
qt_arch: gcc_64
std_cpp: C++17
- host_system: ubuntu-18.04
clang_version: 9
qt_version: 5.12.3
qt_arch: gcc_64
std_cpp: C++14
runs-on: "${{ matrix.host_system }}"
env:
QMAKESPEC: linux-clang
steps:
- name: Cache Qt
id: cache-qt
uses: actions/cache@v1
with:
path: ../Qt
key: QtCache-${{ matrix.qt_version }}-${{ matrix.qt_arch }}
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: "${{ matrix.qt_version }}"
arch: "${{ matrix.qt_arch }}"
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- name: Setup Clang
run: |
sudo apt-get update
sudo apt-get install -y clang-${{ matrix.clang_version }}
find /usr/bin -name "clang++*"
echo $(which clang++)
echo $(which clang++-${{ matrix.clang_version }})
sudo rm /usr/bin/clang++
sudo ln -s $(which clang++-${{ matrix.clang_version }}) /usr/bin/clang++
clang++ --version
- name: Git Checkout
uses: actions/checkout@v2
- run: qmake -r "CONFIG+=${{ matrix.std_cpp }}"
- run: make -j
- run: make check