forked from fastbuild/fastbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.49 KB
/
OSX.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
name: OSX CI
on: [push, pull_request]
defaults:
run:
shell: bash
working-directory: Code
jobs:
osx-ci:
strategy:
fail-fast: false
matrix:
include:
- cfg: Build & Tests
os: macos-11
name: OSX (${{ matrix.cfg }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/DownloadFBuild
- name: Configure fbuild.bff
run: |
for x in clang clang++; do
echo $x; which $x
echo
done
clang --version
# Inject "#define CI_BUILD" into root configs to activate CI logic.
sed -i -e "1i\\
#define CI_BUILD
" fbuild.bff Tools/FBuild/FBuildTest/Data/testcommon.bff
# Put full paths to Clang binaries into config files.
sed -i -e "
s:CLANG_BINARY:$(which clang):
s:CLANGXX_BINARY:$(which clang++):
" ../External/SDK/Clang/OSX/Clang_CI.bff
- name: Build
if: ${{ startsWith(matrix.cfg, 'Build') }}
run: ${FBUILD_PATH} -nostoponerror -summary All-OSX-{Debug,Profile,Release}
- name: Tests
# -j1 on CI nodes avoids timeouts (CI nodes have only 2 cores)
if: ${{ matrix.cfg == 'Build & Tests' }}
run: ${FBUILD_PATH} -nostoponerror -j1 -summary Tests
- name: Build (NoUnity)
if: ${{ startsWith(matrix.cfg, 'Build') }}
run: ${FBUILD_PATH} -nostoponerror -summary -nounity -clean All-OSX-Debug