-
Notifications
You must be signed in to change notification settings - Fork 15
55 lines (52 loc) · 1.52 KB
/
MacOS.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: MacOS
on:
push:
tags-ignore:
- '**'
branches:
- '**'
pull_request:
paths:
- '**'
workflow_dispatch:
workflow_call:
jobs:
buildMacOS:
name: MacOS build
runs-on: macos-latest
steps:
- name: AM+ - Checkout
uses: actions/checkout@v4
with:
path: am
- name: Prepare
id: vars
run: |
which nproc && nbproc=$(nproc) || nbproc=$(getconf _NPROCESSORS_ONLN)
echo "nbproc=${nbproc}" >> $GITHUB_OUTPUT
fe_version=
[[ ${GITHUB_REF} =~ ^refs/tags/* ]] && fe_version="${GITHUB_REF#refs/*/}"
echo "fe_version=${fe_version}" >> $GITHUB_OUTPUT
- name: Install MacOS brew
run: |
brew update
brew upgrade
brew install pkgconfig ffmpeg libarchive libvorbis flac jpeg-turbo boost [email protected]
#~ - name: MacOS switch to GCC
#~ run: |
#~ echo "CC=/usr/local/bin/gcc-10" >> $GITHUB_ENV
#~ echo "CXX=/usr/local/bin/g++-10" >> $GITHUB_ENV
#~ echo "AR=/usr/local/bin/ar-10" >> $GITHUB_ENV
- name: Build AM+
run: |
make -C am -j${{ steps.vars.outputs.nbproc }} VERBOSE=1 FE_VERSION=${{ steps.vars.outputs.fe_version }} prefix=.. USE_SYSTEM_SFML=1 STATIC=0
- name: Prepare artifacts
run: |
git -C am/ fetch --unshallow
mkdir -p "${GITHUB_WORKSPACE}"/artifacts
bash am/util/osx/appbuilder.sh
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: MacOS
path: ./artifacts/