-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: 82Flex <82flex@gmail.com>
- Loading branch information
Showing
4 changed files
with
85 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Xcode - Build and Analyze | ||
|
||
on: | ||
push: | ||
branches: [ "backport/ios-14" ] | ||
pull_request: | ||
branches: [ "backport/ios-14" ] | ||
|
||
jobs: | ||
build: | ||
name: Build and analyse using xcodebuild command | ||
runs-on: macos-13 | ||
|
||
steps: | ||
- name: Setup Xcode version | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: 14.3.1 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build | ||
run: | | ||
xcodebuild clean build analyze -scheme Reveil -project Reveil.xcodeproj CODE_SIGNING_ALLOWED=NO | xcpretty && exit ${PIPESTATUS[0]} |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Xcode - Build Archive | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v1.2.*' | ||
|
||
env: | ||
MARKETING_VERSION: 0.0.0 | ||
PATCH_VERSION: 0 | ||
|
||
jobs: | ||
build: | ||
name: Build sideloading package for TrollStore | ||
runs-on: macos-13 | ||
|
||
steps: | ||
- name: Setup Xcode version | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: 14.3.1 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Update version strings | ||
run: | | ||
export PATCH_VERSION=$(echo "${GITHUB_REF#refs/tags/v}" | cut -d. -f3) | ||
echo "PATCH_VERSION=${PATCH_VERSION}" >> $GITHUB_ENV | ||
echo "MARKETING_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV | ||
xcrun agvtool new-version -all "${PATCH_VERSION}" | ||
xcrun agvtool new-marketing-version "${GITHUB_REF#refs/tags/v}" | ||
- name: Build helper | ||
run: | | ||
xcodebuild clean build archive -scheme ReveilHelper -project Reveil.xcodeproj -archivePath ReveilHelper.xcarchive CODE_SIGNING_ALLOWED=NO | xcpretty && exit ${PIPESTATUS[0]} | ||
- name: Build | ||
run: | | ||
PATH=$PWD/ReveilHelper.xcarchive/Products/usr/local/bin:$PATH xcodebuild clean build archive -scheme Reveil -project Reveil.xcodeproj -sdk iphoneos -destination 'generic/platform=iOS' -archivePath Reveil CODE_SIGNING_ALLOWED=NO | xcpretty && exit ${PIPESTATUS[0]} | ||
- name: Package for sideloading | ||
run: | | ||
cd Reveil.xcarchive/Products/Applications | ||
codesign --remove-signature Reveil.app | ||
cd - | ||
cd Reveil.xcarchive/Products | ||
mv Applications Payload | ||
zip -qr Reveil_${{ env.MARKETING_VERSION }}.tipa Payload | ||
cd - | ||
mv Reveil.xcarchive/Products/Reveil_${{ env.MARKETING_VERSION }}.tipa . | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Reveil_${{ env.MARKETING_VERSION }} | ||
path: Reveil.xcarchive |
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
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