2021-03-29 00:42:20 +00:00
|
|
|
|
|
|
|
name: Check if Cog buildable
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-06-23 07:33:25 +00:00
|
|
|
- main
|
2021-03-29 00:42:20 +00:00
|
|
|
pull_request:
|
|
|
|
branches:
|
2021-06-23 07:33:25 +00:00
|
|
|
- main
|
2021-03-29 00:42:20 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-08-22 18:07:49 +00:00
|
|
|
name: Build Universal Cog.app
|
2022-06-27 04:12:27 +00:00
|
|
|
runs-on: macos-12
|
2021-05-02 20:41:56 +00:00
|
|
|
env:
|
|
|
|
XCODE_DERIVEDDATA_PATH: build
|
2021-03-29 00:42:20 +00:00
|
|
|
steps:
|
|
|
|
- name: Check out repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2022-06-24 23:42:27 +00:00
|
|
|
- name: Unpack libraries
|
|
|
|
run: >
|
|
|
|
cd ThirdParty && tar xvf libraries.tar.xz
|
2021-03-29 00:42:20 +00:00
|
|
|
- name: Run xcodebuild
|
|
|
|
run: >
|
|
|
|
xcodebuild
|
2021-05-02 20:41:56 +00:00
|
|
|
-quiet
|
2021-08-08 19:25:20 +00:00
|
|
|
-project Cog.xcodeproj
|
2021-04-05 17:47:47 +00:00
|
|
|
-scheme Cog
|
|
|
|
-configuration Debug
|
2021-08-22 18:07:49 +00:00
|
|
|
-arch x86_64
|
|
|
|
-arch arm64
|
2021-05-02 20:41:56 +00:00
|
|
|
-derivedDataPath $XCODE_DERIVEDDATA_PATH
|
2021-08-08 19:25:20 +00:00
|
|
|
CODE_SIGNING_ALLOWED=NO
|
2021-08-22 18:07:49 +00:00
|
|
|
ONLY_ACTIVE_ARCH=NO
|
2021-04-05 17:47:47 +00:00
|
|
|
build
|
2021-04-05 18:35:19 +00:00
|
|
|
- name: Package archive
|
|
|
|
run: >
|
|
|
|
ditto
|
|
|
|
-c
|
|
|
|
-k
|
|
|
|
--sequesterRsrc
|
|
|
|
--keepParent
|
|
|
|
--zlibCompressionLevel 9
|
2021-05-02 20:41:56 +00:00
|
|
|
$XCODE_DERIVEDDATA_PATH/Build/Products/Debug/Cog.app
|
|
|
|
$XCODE_DERIVEDDATA_PATH/Cog.zip
|
2021-03-29 00:42:20 +00:00
|
|
|
- name: Upload Artifact
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: Cog
|
2021-06-23 09:41:55 +00:00
|
|
|
path: ${{ env.XCODE_DERIVEDDATA_PATH }}/Cog.zip
|