Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 24 additions & 5 deletions .github/workflows/flagship_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ jobs:
strategy:
matrix:
run-config:
- { scheme: 'Flagship', destination: 'platform=iOS Simulator,name=iPhone 17', label: 'iOS'}
- { scheme: 'Flagship-tvOS', destination: 'platform=tvOS Simulator,name=Apple TV', label: 'tvOS' }
# Generic destinations don't depend on a specific simulator being installed on the runner
- { scheme: 'Flagship', destination: 'generic/platform=iOS Simulator', label: 'iOS'}
- { scheme: 'Flagship-tvOS', destination: 'generic/platform=tvOS Simulator', label: 'tvOS' }
- { scheme: 'Flagship-macOS', destination: 'platform=macOS', label: 'macOS'}
- { scheme: 'Flagship-watchOS', destination: 'platform=watchOS Simulator,name=Apple Watch Ultra 3 (49mm),OS=26.2', label: 'watchOS'}
- { scheme: 'Flagship-watchOS', destination: 'generic/platform=watchOS Simulator', label: 'watchOS'}

steps:
- name: Checkout Project
uses: actions/checkout@v4
Expand All @@ -26,8 +27,26 @@ jobs:
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Pick an available iPhone simulator
id: sim
run: |
# Pick the first available iPhone on the newest installed iOS runtime
UDID=$(xcrun simctl list devices available -j | jq -r '
.devices | to_entries
| map(select(.key | test("SimRuntime\\.iOS-")))
| sort_by(.key | capture("iOS-(?<v>[0-9-]+)").v | split("-") | map(tonumber))
| reverse
| map(.value[] | select(.name | startswith("iPhone")))
| .[0].udid // empty')
if [ -z "$UDID" ]; then
echo "No iPhone simulator available on this runner"
xcrun simctl list devices available
exit 1
fi
echo "Using simulator: $(xcrun simctl list devices | grep "$UDID")"
echo "udid=$UDID" >> "$GITHUB_OUTPUT"
- name: Test SDK Flagship
run: xcodebuild test -project Flagship/Flagship.xcodeproj -scheme "Flagship" -destination "platform=iOS Simulator,name=iPhone 17" -enableCodeCoverage YES
run: xcodebuild test -project Flagship/Flagship.xcodeproj -scheme "Flagship" -destination "platform=iOS Simulator,id=${{ steps.sim.outputs.udid }}" -enableCodeCoverage YES
- name: Upload coverage to Codecov
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24
with:
Expand Down
2 changes: 1 addition & 1 deletion FlagShip.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = "FlagShip"
s.version = "5.0.0"
s.version = "5.0.1"
s.summary = "Flagship SDK"

# This description is used to generate tags and improve search results.
Expand Down
4 changes: 2 additions & 2 deletions FlagShip/Flagship.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1908,7 +1908,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 5.0.0;
MARKETING_VERSION = 5.0.1;
OTHER_LDFLAGS = "";
OTHER_SWIFT_FLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = ABTasty.FlagShip;
Expand Down Expand Up @@ -1942,7 +1942,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 5.0.0;
MARKETING_VERSION = 5.0.1;
OTHER_LDFLAGS = "";
OTHER_SWIFT_FLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = ABTasty.FlagShip;
Expand Down
2 changes: 1 addition & 1 deletion FlagShip/Source/Tools/FlagShipVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ import Foundation

/// This file is automatically updated 2.0.0

public let FlagShipVersion = "5.0.0"
public let FlagShipVersion = "5.0.1"
Loading