-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Decrement `swift-tools-version` from 6.0 to 5.10.0 - Can be set to 6.0 again when swift-actions/setup-swift supports Swift 6 - See: swift-actions/setup-swift#684
- Loading branch information
1 parent
a5e6bb5
commit 3994f69
Showing
2 changed files
with
50 additions
and
1 deletion.
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,49 @@ | ||
name: 🧩 Build Package | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Check last commit for skip keyword | ||
run: python workflow_scripts/check_latest_commit_for_skip.py >> $GITHUB_ENV | ||
|
||
- name: ⏩ SKIPPING REMAINING STEPS 👀 | ||
if: env.should_skip == 'true' | ||
run: exit 0 | ||
|
||
- name: Setup Swift | ||
if: env.should_skip == 'false' | ||
uses: swift-actions/[email protected] | ||
with: | ||
swift-version: '5.10' # Should match swift-tools-version in Package.swift | ||
|
||
- name: Build Control Library | ||
if: env.should_skip == 'false' | ||
run: | | ||
xcodebuild -scheme Control \ | ||
-sdk iphonesimulator \ | ||
-configuration Release \ | ||
-destination 'platform=iOS Simulator,name=iPhone 15,OS=latest' \ | ||
BUILD_DIR=$(pwd)/build/Control | ||
- name: Build Controllers Library | ||
if: env.should_skip == 'false' | ||
run: | | ||
xcodebuild -scheme Controllers \ | ||
-sdk iphonesimulator \ | ||
-configuration Release \ | ||
-destination 'platform=iOS Simulator,name=iPhone 15,OS=latest' \ | ||
BUILD_DIR=$(pwd)/build/Controllers |
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