forked from Read-Write/Submariner
-
Notifications
You must be signed in to change notification settings - Fork 4
28 lines (28 loc) · 1.1 KB
/
build.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
# Note that builds a not-really-signed executable.
# OK for testing, not so hot for distribution.
# Find out a better way.
name: Git Release
# XXX: other criteria?
on: [push]
jobs:
build:
runs-on: macos-12
env:
XCODE_DERIVEDDATA_PATH: build
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install xcpretty
run: gem install xcpretty --no-document --quiet
- name: Build Executable
run: xcodebuild build -configuration Release -project Submariner.xcodeproj -scheme Submariner -arch x86_64 -arch arm64 -derivedDataPath $XCODE_DERIVEDDATA_PATH CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= | xcpretty -c
- name: Package Release
run: ditto -c -k --sequesterRsrc --keepParent "$XCODE_DERIVEDDATA_PATH/Build/Products/Release/Submariner.app" "$XCODE_DERIVEDDATA_PATH/Submariner.zip"
- name: Archive Release
# XXX: best action type?
uses: actions/upload-artifact@v3
with:
name: Submariner
path: ${{ env.XCODE_DERIVEDDATA_PATH }}/Submariner.zip