forked from Banderi/Ozymandias
-
-
Notifications
You must be signed in to change notification settings - Fork 15
52 lines (44 loc) · 1.32 KB
/
akhenaten_mac.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
name: Akhenaten Build Mac
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
name: run on mac
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/cache@v4
id: cache-sdl-libs
with:
path: |
~/Library/Frameworks/SDL2.framework
~/Library/Frameworks/SDL2_image.framework
~/Library/Frameworks/SDL2_mixer.framework
key: ${{ runner.os }}-download-sdl-${{ hashFiles('./.ci-scripts/mac/download-sdl.sh') }}
- name: download-sdl
if: steps.cache-sdl-libs.outputs.cache-hit != 'true'
run: ./.ci-scripts/mac/download-sdl.sh
- name: update-workspace
run: |
mkdir -p build
cd build
export CXXFLAGS=-stdlib=libc++
cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" .. -G "Unix Makefiles"
cd ..
- name: build
run: |
cmake --build ./build -j6
- name: install-and-bundle
run: |
cmake --build ./build --target install/local
mkdir macos_build
cp -R ./build/akhenaten.app ./macos_build/akhenaten.app
- uses: actions/upload-artifact@v4
with:
name: macos_build
path: macos_build