-
Notifications
You must be signed in to change notification settings - Fork 47
64 lines (51 loc) · 1.62 KB
/
build-apple.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
name: MacOS/iOS/tvOS build
on: [push, pull_request]
jobs:
precheks:
name: MacOS -> Pre-Checks
runs-on: macos-12
steps:
- name: Clone DiligentCore
uses: actions/checkout@v3
with:
repository: DiligentGraphics/DiligentCore
path: DiligentCore
- name: Clone DiligentFX
uses: actions/checkout@v3
with:
path: DiligentFX
- name: Format validation
shell: bash
working-directory: ${{github.workspace}}/DiligentFX/BuildTools/FormatValidation
run: ./validate_format_mac.sh
build:
needs: precheks
runs-on: macos-12
strategy:
matrix:
platform: ["MacOS", "iOS", "tvOS"]
build_type: ["Debug", "Release"]
# Do not build GLSLang and friends to save time as it is built by Core and Engine CI.
cmake_args: ["-DDILIGENT_NO_GLSLANG=ON -DDILIGENT_NO_HLSL=ON"]
exclude:
# Exclude tvOS-Release
- platform: "tvOS"
build_type: "Release"
name: MacOS -> ${{ matrix.platform }}-${{ matrix.build_type }}
steps:
- name: Checkout
uses: DiligentGraphics/github-action/checkout@v1
- name: Set up build environment
if: success()
uses: DiligentGraphics/github-action/setup-build-env@v1
with:
platform: ${{ matrix.platform }}
- name: Configure CMake
if: success()
uses: DiligentGraphics/github-action/configure-cmake@v1
with:
build-type: ${{ matrix.build_type }}
cmake-args: ${{ matrix.cmake_args }}
- name: Build
if: success()
uses: DiligentGraphics/github-action/build@v1