-
Notifications
You must be signed in to change notification settings - Fork 20
41 lines (32 loc) · 1011 Bytes
/
cmake-macos.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
name: CMake-MacOS
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Update Git Submodules
run: git submodule update --init --recursive
- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: osx-${{env.BUILD_TYPE}}
- name: Configure CMake
run: cmake gametemplate -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_EDITOR=ON -DBUILD_UNITY=ON -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -j 6
- uses: actions/upload-artifact@v2
with:
name: ${{env.BUILD_TYPE}}
path: |
build/**/*.exe
build/**/EditorResources
build/**/EngineResources
build/**/GameResources
!build/**/CMakeFiles