forked from DiligentGraphics/DiligentEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (79 loc) · 2.92 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: MacOS/iOS/tvOS build
on: [push, pull_request]
jobs:
precheks:
runs-on: macos-12
name: MacOS -> Pre-Checks
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
submodules: true # only need direct submodules
- name: DiligentCore format validation
working-directory: ${{github.workspace}}/DiligentCore/BuildTools/FormatValidation
shell: bash
run: ./validate_format_mac.sh
- name: DiligentTools format validation
working-directory: ${{github.workspace}}/DiligentTools/BuildTools/FormatValidation
shell: bash
run: ./validate_format_mac.sh
- name: DiligentFX format validation
working-directory: ${{github.workspace}}/DiligentFX/BuildTools/FormatValidation
shell: bash
run: ./validate_format_mac.sh
- name: DiligentSamples format validation
working-directory: ${{github.workspace}}/DiligentSamples/BuildTools/FormatValidation
shell: bash
run: ./validate_format_mac.sh
build:
needs: precheks
runs-on: macos-12
strategy:
matrix:
platform: ["MacOS", "iOS", "tvOS"]
build_type: ["Debug", "Release"]
exclude:
# Exclude tvOS-Release
- platform: "tvOS"
build_type: "Release"
include:
- platform: "MacOS"
build_type: "Debug"
cmake_args: "-DDILIGENT_BUILD_TESTS=ON"
- platform: "MacOS"
build_type: "Release"
# For some reason AVX2 causes invalid instruction exception on CI in CoreTest, so disable it
cmake_args: "-DDILIGENT_BUILD_CORE_TESTS=ON -DDILIGENT_BUILD_TOOLS_TESTS=ON -DDILIGENT_CLANG_RELEASE_COMPILE_OPTIONS=\"\""
- platform: "iOS"
cmake_args: ""
- platform: "tvOS"
cmake_args: ""
name: MacOS -> ${{ matrix.platform }}-${{ matrix.build_type }}
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
submodules: recursive
- 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
- name: DiligentCoreTest
if: ${{ success() && matrix.platform == 'MacOS' }}
uses: DiligentGraphics/github-action/run-core-tests@v1
- name: DiligentToolsTest
if: ${{ success() && matrix.platform == 'MacOS' }}
uses: DiligentGraphics/github-action/run-tools-tests@v1
- name: HLSL2GLSLConverterTest
if: ${{ success() && matrix.platform == 'MacOS' }}
uses: DiligentGraphics/github-action/run-hlsl2glsl-converter-test@v1