-
Notifications
You must be signed in to change notification settings - Fork 1
89 lines (76 loc) · 2.48 KB
/
build.yml
File metadata and controls
89 lines (76 loc) · 2.48 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
on:
workflow_dispatch:
jobs:
run-tests:
uses: ./.github/workflows/test.yml
build-windows:
needs: run-tests
runs-on: windows-2025
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Caching
uses: ./.github/actions/caching
with:
key-prefix: windows-build
- name: Configure and build
uses: ./.github/actions/common-windows
with:
config-preset: Release
build-preset: Release
- name: Copy exe
run: copy ".\bin\Release\PartStackerGUI.exe" ".\bin\Release\PartStackerGUI-windows.exe"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: PartStackerGUI-windows
path: .\bin\Release\PartStackerGUI-windows.exe
build-macos:
needs: run-tests
runs-on: macos-15
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Caching
uses: ./.github/actions/caching
with:
key-prefix: macos-build
- name: Configure and build x64
uses: ./.github/actions/common-macos
with:
config-preset: Release
build-preset: Release
vcpkg-triplet: x64-osx
arch: x86_64
- name: Configure and build arm64
uses: ./.github/actions/common-macos
with:
config-preset: Release
build-preset: Release
vcpkg-triplet: arm64-osx
arch: arm64
- name: Merge binaries
run: |
mkdir -p ./bin/Release
cp -R ./bin/x86_64/Release/PartStackerGUI.app ./bin/Release/PartStackerGUI.app
lipo -create \
./bin/x86_64/Release/PartStackerGUI.app/Contents/MacOS/PartStackerGUI \
./bin/arm64/Release/PartStackerGUI.app/Contents/MacOS/PartStackerGUI \
-output ./bin/Release/PartStackerGUI.app/Contents/MacOS/PartStackerGUI
- name: Package into DMG
run: |
mkdir -p ./bin/Release
hdiutil create \
-volname "PartStackerGUI" \
-srcfolder ./bin/Release \
-format UDZO \
./bin/Release/PartStackerGUI-mac.dmg
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: PartStackerGUI-mac
path: ./bin/Release/PartStackerGUI-mac.dmg