-
Notifications
You must be signed in to change notification settings - Fork 16
108 lines (103 loc) · 3.34 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
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
name: Build
on: [push, pull_request]
jobs:
linux:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
env:
- { cc: clang, cxx: clang++ }
- { cc: gcc, cxx: g++ }
steps:
- uses: actions/checkout@v4
- name: Install Grantlee
run: sudo apt install libgrantlee5-dev
- name: Build
env:
CC: ${{ matrix.env.cc }}
CXX: ${{ matrix.env.cxx }}
run: |
cmake -D BUILD_CODEGEN=YES -D CMAKE_BUILD_TYPE=Release -S "$GITHUB_WORKSPACE" -B "$RUNNER_TEMP"
cmake --build "$RUNNER_TEMP" --target codegen QtAwsAcm QtAwsCore QtAwsS3 QtAwsS3Control QtAwsXRay
linux-qts:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
qt: [ '5.9.9', '5.12.11', '5.15.2' ]
env:
- { cc: clang, cxx: clang++ }
- { cc: gcc, cxx: g++ }
steps:
- uses: actions/checkout@v4
- name: Install Tools
run: sudo apt install clang
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt }}
- name: Build
env:
CC: ${{ matrix.env.cc }}
CXX: ${{ matrix.env.cxx }}
run: |
# We don't build codegen when using jurplel Qt's, because installing libgrantlee5-dev
# pulls in Ubuntu's own Qt5 libraries, which is not ideal.
cmake -D BUILD_CODEGEN=NO -D CMAKE_BUILD_TYPE=Release -S "$GITHUB_WORKSPACE" -B "$RUNNER_TEMP"
cmake --build "$RUNNER_TEMP" --target QtAwsAcm QtAwsCore QtAwsS3 QtAwsS3Control QtAwsXRay
mac:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macOs-latest ]
qt: [ '5.9.9', '5.12.11', '5.15.2' ]
env:
- { cc: clang, cxx: clang++ }
- { cc: gcc-11, cxx: g++-11 }
steps:
- uses: actions/checkout@v4
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt }}
- name: Build
env:
CC: ${{ matrix.env.cc }}
CXX: ${{ matrix.env.cxx }}
run: |
cmake -D BUILD_CODEGEN=NO -D CMAKE_BUILD_TYPE=Release -S "$GITHUB_WORKSPACE" -B "$RUNNER_TEMP"
cmake --build "$RUNNER_TEMP" --target QtAwsAcm QtAwsCore QtAwsS3 QtAwsS3Control QtAwsXRay
win:
runs-on: ${{ matrix.os }}
defaults: { run: { shell: cmd } }
strategy:
matrix:
os: [ windows-latest ]
qt: [ '5.12.11', '5.15.2' ]
generator: [ 'MinGW Makefiles', 'NMake Makefiles' ]
include:
- qt: '5.12.11'
arch: win64_mingw73
- qt: '5.15.2'
arch: win64_mingw81
steps:
- uses: actions/checkout@v4
- name: Install Qt (mingw)
if: ${{ contains(matrix.generator, 'mingw') }}
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt }}
arch: ${{ matrix.arch }}
- name: Install Qt (msvc)
if: ${{ contains(matrix.generator, 'nmake') }}
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt }}
- name: Configure MSVC
if: ${{ contains(matrix.generator, 'nmake') }}
uses: ilammy/msvc-dev-cmd@v1
- name: Build
run: |
cmake -D BUILD_CODEGEN=NO -D CMAKE_BUILD_TYPE=Release -G "${{ matrix.generator }}" -S "%GITHUB_WORKSPACE%" -B "%RUNNER_TEMP%"
cmake --build "%RUNNER_TEMP%" --target QtAwsAcm QtAwsCore QtAwsS3 QtAwsS3Control QtAwsXRay