57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
|
|
name: Check if Cog buildable
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Cog for Intel
|
|
runs-on: macos-latest
|
|
env:
|
|
XCODE_DERIVEDDATA_PATH: build
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
- name: Setup DEVELOPMENT_TEAM
|
|
env:
|
|
MAC_DEVELOPMENT_TEAM: ${{ secrets.MAC_DEVELOPMENT_TEAM }}
|
|
run: |
|
|
echo "DEVELOPMENT_TEAM = $MAC_DEVELOPMENT_TEAM" > Xcode-config/DEVELOPMENT_TEAM.xcconfig
|
|
- name: Install application certificate
|
|
uses: apple-actions/import-codesign-certs@v1
|
|
with:
|
|
keychain: ${{ github.run_id }}
|
|
keychain-password: ${{ github.run_id }}
|
|
p12-file-base64: ${{ secrets.MAC_APPLICATION_CERTIFICATE_P12 }}
|
|
p12-password: ${{ secrets.MAC_APPLICATION_CERTIFICATE_PASSPHRASE }}
|
|
- name: Run xcodebuild
|
|
run: >
|
|
xcodebuild
|
|
-quiet
|
|
-scheme Cog
|
|
-configuration Debug
|
|
-derivedDataPath $XCODE_DERIVEDDATA_PATH
|
|
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: $XCODE_DERIVEDDATA_PATH/Cog.zip
|