forked from transmission-remote-gui/transgui
-
Notifications
You must be signed in to change notification settings - Fork 3
96 lines (74 loc) · 1.95 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
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
90
91
92
93
94
95
96
name: macOS Build
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
build-macos-arm64:
runs-on: macos-14
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- uses: actions/cache@v4
with:
path: |
~/.transgui_sdk/lazarus
~/.transgui_sdk/fpc-3.2.4-rc1
key: macos-arm64-fpc-lazarus
- run: .github/build_macos.sh
- uses: actions/upload-artifact@v4
with:
name: TransGUI macOS arm64
path: transgui_ppca64
if-no-files-found: error
build-macos-x64:
runs-on: macos-12
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- uses: actions/cache@v4
with:
path: |
~/.transgui_sdk/lazarus
~/.transgui_sdk/fpc-3.2.4-rc1
key: macos-x64-fpc-lazarus
- run: .github/build_macos.sh
- uses: actions/upload-artifact@v4
with:
name: TransGUI macOS x64
path: transgui_ppcx64
if-no-files-found: error
package-macos:
needs: [build-macos-arm64, build-macos-x64]
runs-on: macos-12
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
.github
lang
# no cache needed here as we don't compile anything
- uses: actions/download-artifact@v4
with:
name: TransGUI macOS arm64
path: transgui_ppca64
- uses: actions/download-artifact@v4
with:
name: TransGUI macOS x64
path: transgui_ppcx64
- run: .github/package_macos.sh
# keeping these around would just be confusing
- uses: geekyeggo/delete-artifact@v5
with:
name: TransGUI macOS arm64
- uses: geekyeggo/delete-artifact@v5
with:
name: TransGUI macOS x64
- uses: actions/upload-artifact@v4
with:
name: TransGUI macOS Universal Binary
path: Release/transgui.dmg
if-no-files-found: error