cog/.github/workflows/debug.yml

50 lines
1.1 KiB
YAML
Raw Permalink Normal View History

name: Check if Cog buildable
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build Universal Cog.app
2021-08-22 17:28:37 +00:00
runs-on: macos-11
2021-05-02 20:41:56 +00:00
env:
XCODE_DERIVEDDATA_PATH: build
steps:
- name: Check out repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Run xcodebuild
run: >
xcodebuild
2021-05-02 20:41:56 +00:00
-quiet
-project Cog.xcodeproj
2021-04-05 17:47:47 +00:00
-scheme Cog
-configuration Debug
-arch x86_64
-arch arm64
2021-05-02 20:41:56 +00:00
-derivedDataPath $XCODE_DERIVEDDATA_PATH
CODE_SIGNING_ALLOWED=NO
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
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: Cog
path: ${{ env.XCODE_DERIVEDDATA_PATH }}/Cog.zip