-
Notifications
You must be signed in to change notification settings - Fork 16
70 lines (62 loc) · 2.01 KB
/
osx-xcode.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
name: OSX (Xcode Generator)
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:
mac_os_build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-10.15, macos-11, macos-12 ]
xcode-version: [ latest-stable ]
# From 12.1 to 12.4 (inclusive), all XCode versions use the same
# compiler version.
include:
# MacOS 10.15, XCode 12.4
- os: macos-10.15
xcode-version: 12.4
# MacOS 11, XCode 13.0
- os: macos-11
xcode-version: 13.0
# MacOS 11, XCode 13.1
- os: macos-11
xcode-version: 13.1
# MacOS 12, XCode 13.1
- os: macos-12
xcode-version: 13.1
- os: macos-12
# MacOS 12, XCode 13.2
- os: macos-12
xcode-version: 13.2
name: ${{ matrix.os }} (XCode ${{ matrix.xcode-version }}, Xcode Generator)
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode-version }}
- name: ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: ${{ matrix.os }}-xcode-${{ matrix.xcode-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"Xcode"
- name: Build
run: |
cmake --build ${{ github.workspace }}/build \
--config ${{ env.BUILD_TYPE }} \
--target Editor Test \
--parallel 2