-
Notifications
You must be signed in to change notification settings - Fork 16
78 lines (68 loc) · 2.25 KB
/
linux-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
name: Linux Clang
on:
push:
branches: [ main, development ]
pull_request:
branches: [ main, development ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
# We build RelProfile to test both Release and Profiling aspects of the build
BUILD_TYPE: RelProfile
jobs:
ubuntu_build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-18.04, ubuntu-20.04, ubuntu-22.04 ]
clang-version: [ 9, 10, 11 ]
include:
- os: ubuntu-22.04
clang-version: 12
- os: ubuntu-22.04
clang-version: 13
- os: ubuntu-22.04
clang-version: 14
exclude:
# excludes clang-11 on Ubuntu 18.04 because it doesn't exist in the
# standard repositories.
- os: ubuntu-18.04
clang-version: 11
- os: ubuntu-22.04
clang-version: 9
- os: ubuntu-22.04
clang-version: 10
name: ${{ matrix.os }} (Clang ${{matrix.clang-version }})
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Dependencies
run: |
sudo apt-get update -q
sudo apt-get install -yq --no-install-recommends \
xorg-dev \
uuid-dev \
pkg-config \
libgtk-3-dev \
clang-${{ matrix.clang-version }}
- name: ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: ${{ matrix.os }}-clang-${{ matrix.clang-version }}
max-size: 100M
- name: Configure CMake
run: |
cmake -B${{ github.workspace }}/build \
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-G"Unix Makefiles"
env:
CC: clang-${{ matrix.clang-version }}
CXX: clang++-${{ matrix.clang-version }}
- name: Build
run: |
cmake --build ${{ github.workspace }}/build \
--config ${{ env.BUILD_TYPE }} \
--target Editor Test \
--parallel 2