File tree Expand file tree Collapse file tree 2 files changed +50
-1
lines changed Expand file tree Collapse file tree 2 files changed +50
-1
lines changed Original file line number Diff line number Diff line change 1+ name : 🧩 Build Package
2+
3+ on :
4+ pull_request :
5+ branches : [ "main" ]
6+
7+ jobs :
8+ build :
9+ runs-on : macos-latest
10+
11+ steps :
12+ - name : Check out code
13+ uses : actions/checkout@v4
14+
15+ - name : Set up Python
16+ uses : actions/setup-python@v5
17+ with :
18+ python-version : ' 3.10'
19+
20+ - name : Check last commit for skip keyword
21+ run : python workflow_scripts/check_latest_commit_for_skip.py >> $GITHUB_ENV
22+
23+ - name : ⏩ SKIPPING REMAINING STEPS 👀
24+ if : env.should_skip == 'true'
25+ run : exit 0
26+
27+ - name : Setup Swift
28+ if : env.should_skip == 'false'
29+ uses :
swift-actions/[email protected] 30+ with :
31+ swift-version : ' 5.10' # Should match swift-tools-version in Package.swift
32+
33+ - name : Build Control Library
34+ if : env.should_skip == 'false'
35+ run : |
36+ xcodebuild -scheme Control \
37+ -sdk iphonesimulator \
38+ -configuration Release \
39+ -destination 'platform=iOS Simulator,name=iPhone 15,OS=latest' \
40+ BUILD_DIR=$(pwd)/build/Control
41+
42+ - name : Build Controllers Library
43+ if : env.should_skip == 'false'
44+ run : |
45+ xcodebuild -scheme Controllers \
46+ -sdk iphonesimulator \
47+ -configuration Release \
48+ -destination 'platform=iOS Simulator,name=iPhone 15,OS=latest' \
49+ BUILD_DIR=$(pwd)/build/Controllers
Original file line number Diff line number Diff line change 1- // swift-tools-version: 6 .0
1+ // swift-tools-version: 5.10 .0
22// The swift-tools-version declares the minimum version of Swift required to build this package.
33
44import PackageDescription
You can’t perform that action at this time.
0 commit comments