-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/origin/main'
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 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,50 @@ | ||
name: "Build & Analyze" | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
build_app: | ||
runs-on: macos-14 | ||
steps: | ||
- name: List Xcode installations | ||
run: sudo ls -1 /Applications | grep "Xcode" | ||
|
||
- name: Select Xcode 15.2 | ||
run: sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer | ||
|
||
- name: Check Xcode version | ||
run: /usr/bin/xcodebuild -version | ||
|
||
- name: Checkout source files | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build unsigned archive | ||
run: | | ||
xcodebuild archive \ | ||
-project InfiniLink.xcodeproj \ | ||
-scheme InfiniLink \ | ||
-archivePath unsigned.xcarchive \ | ||
-configuration Release \ | ||
-sdk iphoneos \ | ||
-destination generic/platform=iOS \ | ||
CODE_SIGN_IDENTITY="" \ | ||
CODE_SIGNING_REQUIRED=NO \ | ||
CODE_SIGNING_ALLOWED=NO | ||
- name: Make IPA | ||
run: | | ||
find . | ||
mv ./unsigned.xcarchive/Products/Applications ./Payload | ||
zip -r infinilink.zip ./Payload | ||
mv infinilink.zip infinilink.ipa | ||
find . | ||
- name: Upload build artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: infinilink.ipa | ||
path: infinilink.ipa |