-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,38 @@ | ||
name: Nightly Build | ||
name: Build and Release IPA | ||
|
||
on: | ||
- "push" | ||
- "workflow_dispatch" | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: macos-13 | ||
|
||
runs-on: macos-latest | ||
|
||
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 iOS | ||
run: xcodebuild -workspace "AnimeGen.xcworkspace" -scheme AnimeGen -configuration Release -destination generic/platform=iOS archive -archivePath "build/AnimeGen_Nightly.iOS.xcarchive" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | ||
- name: Package iOS | ||
run: ./Misc/scripts/package.sh "build/AnimeGen_Nightly.iOS.xcarchive" iOS "AnimeGen_Nightly.${{ steps.commitinfo.outputs.sha_short }}.iOS" | ||
- name: Upload iOS Symbols | ||
run: ./Misc/scripts/upload_symbols.sh ${{ secrets.APPCENTER_TOKEN }} | ||
- name: Upload iOS Artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: AnimeGen_Nightly.${{ steps.commitinfo.outputs.sha_short }}.iOS | ||
path: build/* | ||
if-no-files-found: error | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Xcode | ||
uses: actions/setup-xcode@v2 | ||
with: | ||
xcode-version: '13.x' | ||
|
||
- name: Install CocoaPods | ||
run: | | ||
gem install cocoapods | ||
pod install --repo-update | ||
- name: Build IPA | ||
run: | | ||
xcodebuild -project AnimeGen.xcodeproj -scheme AnimeGen -configuration Release -destination 'generic/platform=iOS' clean archive -archivePath $PWD/build/AnimeGen.xcarchive | ||
xcodebuild -exportArchive -archivePath $PWD/build/AnimeGen.xcarchive -exportOptionsPlist ExportOptions.plist -exportPath $PWD/build | ||
- name: Archive and Upload Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: AnimeGen-IPA | ||
path: $PWD/build/*.ipa |