forked from Banderi/Ozymandias_Julius
-
-
Notifications
You must be signed in to change notification settings - Fork 42
43 lines (37 loc) · 1.15 KB
/
Copy pathakhenaten_mac_arm.yml
File metadata and controls
43 lines (37 loc) · 1.15 KB
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
name: Akhenaten Build Mac
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
name: run on mac arm64
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install OpenSSL (for curl)
run: brew install openssl@3
- name: update-workspace
run: |
export CXXFLAGS=-stdlib=libc++
export OPENSSL_ROOT_DIR=$(brew --prefix openssl@3)
cmake --preset macos-clang-relwithdebinfo-make-arm64 \
-DCMAKE_OSX_DEPLOYMENT_TARGET=11.7 \
-DOPTION_SYSTEM_LIBPNG=OFF \
-DOPTION_BUILD_LIBPNG=ON \
-DCMAKE_INSTALL_PREFIX="$PWD/build/install"
- name: build
run: |
cmake --build --preset macos-clang-relwithdebinfo-make-arm64 -- -j$(sysctl -n hw.ncpu)
- name: install-and-bundle
run: |
cmake --build --preset macos-clang-relwithdebinfo-make-arm64 --target install/local
mkdir macos_build
cp -R ./build/install/akhenaten.app ./macos_build/akhenaten.app
- uses: actions/upload-artifact@v6
with:
name: macos_arm_build
path: macos_build