Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Update Common to track the latest NACommon commit #145

Update Common to track the latest NACommon commit

Update Common to track the latest NACommon commit #145

Workflow file for this run

name: Nightly Build
on:
- "push"
- "workflow_dispatch"
jobs:
build:
runs-on: macos-13
strategy:
matrix:
platform: ['iOS', 'macOS']
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
- name: Fetch Commit Info
id: commitinfo
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build ${{ matrix.platform }}
run: xcodebuild -workspace "NineAnimator.xcworkspace" -scheme NineAnimator -configuration Release -destination generic/platform=${{ matrix.platform }} archive -archivePath "build/NineAnimator_Nightly.${{ matrix.platform }}.xcarchive" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
- name: Package ${{ matrix.platform }}
run: ./Misc/scripts/package.sh "build/NineAnimator_Nightly.${{ matrix.platform }}.xcarchive" ${{ matrix.platform }} "NineAnimator_Nightly.${{ steps.commitinfo.outputs.sha_short }}.${{ matrix.platform }}"
- name: Upload ${{ matrix.platform }} Symbols
run: ./Misc/scripts/upload_symbols.sh ${{ secrets.APPCENTER_TOKEN }}
- name: Upload ${{ matrix.platform }} Artifacts
uses: actions/upload-artifact@v2
with:
name: NineAnimator_Nightly.${{ steps.commitinfo.outputs.sha_short }}.${{ matrix.platform }}
path: build/*
if-no-files-found: error