Skip to content

Commit b0cd6b2

Browse files
committed
Try auto building on mac
1 parent 8837ffa commit b0cd6b2

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/build-macos.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,40 @@
11
on:
22
workflow_dispatch:
3+
4+
jobs:
5+
build:
6+
# strategy:
7+
# matrix:
8+
# arch: [x86_64, arm64]
9+
10+
runs-on: macos-15
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
with:
15+
submodules: recursive
16+
17+
- name: Set up Xcode 15
18+
run: sudo xcode-select -switch /Applications/Xcode_15.0.app
19+
20+
- name: Configure CMake
21+
run: |
22+
cmake --preset Release
23+
-G Xcode \
24+
-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64 \
25+
-DCMAKE_OSX_DEPLOYMENT_TARGET=11.6
26+
27+
- name: Build PartStacker
28+
run: cmake --build --preset Release
29+
30+
- name: Upload
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: PartStackerGUI-mac
34+
path: ./bin/
35+
36+
- name: Testing
37+
run: ls ./bin
38+
39+
- name: Testing
40+
run: ls ./bin/Release

0 commit comments

Comments
 (0)