-
-
Notifications
You must be signed in to change notification settings - Fork 46
56 lines (54 loc) · 1.32 KB
/
debug.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
name: Check if Cog buildable
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build Universal Cog.app
runs-on: macos-13
env:
XCODE_DERIVEDDATA_PATH: build
steps:
- name: Switch to Xcode 15
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15
- name: Check out repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Unpack libraries
run: >
cd ThirdParty && tar xvf libraries.tar.xz
- name: Run xcodebuild
run: >
xcodebuild
-quiet
-project Cog.xcodeproj
-scheme Cog
-configuration Debug
-arch x86_64
-arch arm64
-derivedDataPath $XCODE_DERIVEDDATA_PATH
CODE_SIGNING_ALLOWED=NO
ONLY_ACTIVE_ARCH=NO
build
- name: Package archive
run: >
ditto
-c
-k
--sequesterRsrc
--keepParent
--zlibCompressionLevel 9
$XCODE_DERIVEDDATA_PATH/Build/Products/Debug/Cog.app
$XCODE_DERIVEDDATA_PATH/Cog.zip
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Cog
path: ${{ env.XCODE_DERIVEDDATA_PATH }}/Cog.zip