-
Notifications
You must be signed in to change notification settings - Fork 1
133 lines (115 loc) · 3.26 KB
/
tests.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
name: Tests
on: [push, pull_request]
jobs:
Windows:
name: windows-${{ matrix.os-version }}-${{ matrix.build-config }}-${{ matrix.build-arch }}${{ matrix.build-tool }}
runs-on: windows-${{ matrix.os-version }}
strategy:
fail-fast: false
matrix:
os-version: [2022]
build-config: [debug, release, relwithdebinfo]
build-arch: [Win32, x64]
build-tool: ["", "-T ClangCL"]
exclude:
- build-arch: Win32
build-tool: "-T ClangCL"
steps:
- name: Versions
shell: bash
run: |
cmake --version
git --version
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure
shell: bash
run: |
mkdir build
cd build
cmake -A${{ matrix.build-arch }} ${{ matrix.build-tool }} -DCMAKE_BUILD_TYPE=${{ matrix.build-config }} ..
- name: Build
shell: bash
run: |
cd build
cmake --build . --config ${{ matrix.build-config }}
Ubuntu:
name: ubuntu-${{ matrix.os-version }}-${{ matrix.build-config }}-${{ matrix.compiler.cc }}
runs-on: ubuntu-${{ matrix.os-version }}.04
env:
CC: ${{ matrix.compiler.cc }}
CXX: ${{ matrix.compiler.cxx }}
strategy:
fail-fast: false
matrix:
os-version: [22]
build-config: [debug, release, relwithdebinfo]
compiler:
- {
cc: gcc-12,
cxx: g++-12,
install: gcc-12 g++-12
}
- {
cc: clang-15,
cxx: clang++-15,
install: clang-15
}
steps:
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y xorg-dev libwayland-dev libxkbcommon-dev libpulse-dev libasound2-dev nasm libssl-dev ${{ matrix.compiler.install }}
- name: Versions
run: |
cmake --version
git --version
${{ matrix.compiler.cc }} --version
${{ matrix.compiler.cxx }} --version
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-config }} ..
- name: Build
run: |
cd build
cmake --build . --config ${{ matrix.build-config }} -- -j3
Assets:
name: Assets
runs-on: ubuntu-22.04
env:
CC: ${{ matrix.compiler.cc }}
CXX: ${{ matrix.compiler.cxx }}
strategy:
fail-fast: false
matrix:
build-config: [release]
compiler:
- {
cc: clang-15,
cxx: clang++-15,
install: clang-15
}
steps:
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y xorg-dev libwayland-dev libxkbcommon-dev libpulse-dev libasound2-dev nasm libssl-dev ${{ matrix.compiler.install }}
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure and Build
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-config }} ..
cmake --build . --config ${{ matrix.build-config }} -- -j3
- name: Assets
run: |
cd build/result/${{ matrix.build-config }}
./cage-asset-database