Fixing merge horrors and setting up SDK versions. #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
- 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 |