-
Notifications
You must be signed in to change notification settings - Fork 7
49 lines (40 loc) · 1.24 KB
/
macosx-clang-build.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
name: macosx-clang-build
on:
pull_request:
branches: [ main ]
env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: install dependencies
run: |
brew install pkg-config
- name: get cmake
uses: lukka/get-cmake@latest
with:
useLocalCache: true
useCloudCache: false
cmakeVersion: "3.25.0"
- name: run-vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgDirectory: '${{ github.workspace }}/vcpkg'
vcpkgGitCommitId: 'efca044b75fbf481d6650ce4d3b223d8af94f7a7'
- name: run build
uses: lukka/run-cmake@v10.7
with:
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt'
configurePreset: 'ninja-multi-vcpkg'
configurePresetAdditionalArgs: "['-DIS_CI_BUILD=true']"
buildPreset: 'ninja-multi-vcpkg'
- name: run unit tests
run: |
echo "Running crescent engine tests!"
${{ github.workspace }}/builds/Debug/crescent_engine_test
echo ""
echo "Running crescent engine editor tests!"
${{ github.workspace }}/builds/Debug/crescent_engine_editor_test