-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (45 loc) · 1.65 KB
/
Copy pathxcodebuild.yml
File metadata and controls
54 lines (45 loc) · 1.65 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
name: macOS
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
matrix:
os: ["macos-15"]
include:
- os: macos-15
binary_path: build/TrayTalk.zip
artifact_name: "TrayTalk.zip"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Create build directory
working-directory: ${{github.workspace}}
run: mkdir build
- name: Build
working-directory: ${{github.workspace}}/build
# Execute the build.
run: xcodebuild -project '../TrayTalk.xcodeproj' -config Release -scheme 'TrayTalk' -destination generic/platform=macOS -allowProvisioningUpdates -allowProvisioningDeviceRegistration -archivePath ./archive archive CODE_SIGNING_ALLOWED=NO
- name: Export archive to .app
working-directory: ${{github.workspace}}/build
# Exports the archive to a .app file
run: xcodebuild -exportArchive -archivePath ./archive.xcarchive -exportPath ./ -exportOptionsPlist ../exportOptions.plist | xcpretty
- name: Zip the exported file
working-directory: ${{github.workspace}}/build
# Zip the application for easier downloading
run: zip -r TrayTalk.zip TrayTalk.app
- name: Upload the zipped application
uses: actions/upload-artifact@v4
with:
# Artifact name
name: ${{ matrix.artifact_name }}
# A file, directory or wildcard pattern that describes what to upload
path: ${{github.workspace}}/${{matrix.binary_path}}
# The desired behavior if no files are found using the provided path.