updated ci/cd
This commit is contained in:
1 parent
28e8c2e2a8
commit
864a8b68f2
4 files changed
+94
-110
No files matched your search
+23
-30
@@ -1,5 +1,4 @@
|
|||||||
name: iOS CI
|
name: Build Unsigned iOS ipa
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@@ -10,40 +9,34 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- develop
|
- develop
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-test:
|
build-ios:
|
||||||
name: Build and Test SwiftUI App
|
name: Build Unsigned iOS IPA
|
||||||
runs-on: macos-26 # Uses Apple Silicon M1/M2 runners
|
runs-on: macos-26
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Step 1: Check out the repository code
|
- name: Checkout repository
|
||||||
- name: Checkout Repository
|
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
- name: Set up Xcode version
|
||||||
# Step 2: Select the correct Xcode version
|
|
||||||
- name: Set Xcode Version
|
|
||||||
run: sudo xcode-select -s /Applications/Xcode_26.6.app/Contents/Developer
|
run: sudo xcode-select -s /Applications/Xcode_26.6.app/Contents/Developer
|
||||||
|
- name: Build Xcode Workspace
|
||||||
# Step 3: Load dependencies if using Swift Package Manager
|
|
||||||
- name: Resolve Swift Packages
|
|
||||||
run: xcodebuild -resolvePackageDependencies -project Luma.xcodeproj -scheme Luma
|
|
||||||
|
|
||||||
# Step 4: Build and run tests using xcodebuild. CI runs the
|
|
||||||
# deterministic unit tests only; the UI tests (LumaUITests) are
|
|
||||||
# exercised manually on a simulator.
|
|
||||||
- name: Build and Test
|
|
||||||
run: |
|
run: |
|
||||||
xcodebuild test \
|
xcodebuild build \
|
||||||
-project Luma.xcodeproj \
|
-project Luma.xcodeproj \
|
||||||
-scheme Luma \
|
-scheme Luma \
|
||||||
-destination 'platform=iOS Simulator,name=iPhone 17 Pro Max,OS=26.4.1' \
|
-configuration Release \
|
||||||
-only-testing:LumaTests \
|
-destination 'generic/platform=iOS' \
|
||||||
-resultBundlePath TestResults.xcresult
|
-derivedDataPath build/DerivedData \
|
||||||
|
CODE_SIGNING_ALLOWED=NO \
|
||||||
- name: Upload Test Results
|
CODE_SIGNING_REQUIRED=NO \
|
||||||
if: always()
|
CODE_SIGN_IDENTITY="" \
|
||||||
|
PROVISIONING_PROFILE_SPECIFIER=""
|
||||||
|
- name: Package into IPA
|
||||||
|
run: |
|
||||||
|
mkdir -p build/Payload
|
||||||
|
mv build/DerivedData/Build/Products/Release-iphoneos/Luma.app build/Payload/
|
||||||
|
cd build && zip -r Luma.ipa Payload/
|
||||||
|
- name: Upload iOS Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Luma-TestResults
|
name: Luma${{ github.run_id }}
|
||||||
path: TestResults.xcresult
|
path: build/Luma.ipa
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
name: Build Unsigned macOS App
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- develop
|
||||||
|
- issue-*
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- develop
|
||||||
|
jobs:
|
||||||
|
build-macos:
|
||||||
|
name: Build macOS ZIP
|
||||||
|
runs-on: macos-26
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Set up Xcode version
|
||||||
|
run: sudo xcode-select -s /Applications/Xcode_26.6.app/Contents/Developer
|
||||||
|
- name: Build macOS App
|
||||||
|
run: |
|
||||||
|
xcodebuild build \
|
||||||
|
-project Luma.xcodeproj \
|
||||||
|
-scheme LumaMac \
|
||||||
|
-configuration Release \
|
||||||
|
-derivedDataPath build/DerivedData \
|
||||||
|
CODE_SIGNING_ALLOWED=NO \
|
||||||
|
CODE_SIGNING_REQUIRED=NO \
|
||||||
|
CODE_SIGN_IDENTITY=""
|
||||||
|
- name: Upload macOS Artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Luma
|
||||||
|
path: build/DerivedData/Build/Products/Release/Luma.app
|
||||||
@@ -1,80 +0,0 @@
|
|||||||
name: Build Unsigned iOS and macOS Apps
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- develop
|
|
||||||
- issue-*
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
- develop
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-ios:
|
|
||||||
name: Build Unsigned iOS IPA
|
|
||||||
runs-on: macos-26
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Xcode version
|
|
||||||
run: sudo xcode-select -s /Applications/Xcode_26.6.app/Contents/Developer
|
|
||||||
|
|
||||||
- name: Build Xcode Workspace
|
|
||||||
run: |
|
|
||||||
xcodebuild build \
|
|
||||||
-project Luma.xcodeproj \
|
|
||||||
-scheme Luma \
|
|
||||||
-configuration Release \
|
|
||||||
-destination 'generic/platform=iOS' \
|
|
||||||
-derivedDataPath build/DerivedData \
|
|
||||||
CODE_SIGNING_ALLOWED=NO \
|
|
||||||
CODE_SIGNING_REQUIRED=NO \
|
|
||||||
CODE_SIGN_IDENTITY="" \
|
|
||||||
PROVISIONING_PROFILE_SPECIFIER=""
|
|
||||||
|
|
||||||
- name: Package into IPA
|
|
||||||
run: |
|
|
||||||
mkdir -p build/Payload
|
|
||||||
mv build/DerivedData/Build/Products/Release-iphoneos/Luma.app build/Payload/
|
|
||||||
cd build && zip -r Luma.ipa Payload/
|
|
||||||
|
|
||||||
- name: Upload iOS Artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: unsigned-ios-ipa
|
|
||||||
path: build/Luma.ipa
|
|
||||||
|
|
||||||
build-macos:
|
|
||||||
name: Build macOS ZIP
|
|
||||||
runs-on: macos-26
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Xcode version
|
|
||||||
run: sudo xcode-select -s /Applications/Xcode_26.6.app/Contents/Developer
|
|
||||||
|
|
||||||
- name: Build macOS App
|
|
||||||
run: |
|
|
||||||
xcodebuild build \
|
|
||||||
-project Luma.xcodeproj \
|
|
||||||
-scheme LumaMac \
|
|
||||||
-configuration Release \
|
|
||||||
-derivedDataPath build/DerivedData \
|
|
||||||
CODE_SIGNING_ALLOWED=NO \
|
|
||||||
CODE_SIGNING_REQUIRED=NO \
|
|
||||||
CODE_SIGN_IDENTITY=""
|
|
||||||
|
|
||||||
- name: Compress macOS App
|
|
||||||
run: |
|
|
||||||
cd build/DerivedData/Build/Products/Release
|
|
||||||
zip -r Luma.zip Luma.app
|
|
||||||
|
|
||||||
- name: Upload macOS Artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: unsigned-macos-zip
|
|
||||||
path: build/DerivedData/Build/Products/Release/Luma.zip
|
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
name: iOS CI
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- develop
|
||||||
|
- issue-*
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- develop
|
||||||
|
jobs:
|
||||||
|
build-and-test:
|
||||||
|
name: Build and Test SwiftUI App
|
||||||
|
runs-on: macos-26
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Set Xcode Version
|
||||||
|
run: sudo xcode-select -s /Applications/Xcode_26.6.app/Contents/Developer
|
||||||
|
- name: Resolve Swift Packages
|
||||||
|
run: xcodebuild -resolvePackageDependencies -project Luma.xcodeproj -scheme Luma
|
||||||
|
- name: Build and Test
|
||||||
|
run: |
|
||||||
|
xcodebuild test \
|
||||||
|
-project Luma.xcodeproj \
|
||||||
|
-scheme Luma \
|
||||||
|
-destination 'platform=iOS Simulator,name=iPhone 17 Pro Max,OS=26.4.1' \
|
||||||
|
-only-testing:LumaTests \
|
||||||
|
-resultBundlePath TestResults.xcresult
|
||||||
|
- name: Upload Test Results
|
||||||
|
if: always()
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Luma-TestResults
|
||||||
|
path: TestResults.xcresult
|
||||||
Reference in new issue
Block a user