1616 - name : Checkout repo
1717 uses : actions/checkout@v6
1818
19+ - uses : taiki-e/install-action@v2
20+ with :
21+ tool : just
22+
1923 - name : Check format
2024 id : check-format
21- run : swiftformat . --lint
25+ run : just format-apple --check
2226
2327 - name : Recommend swiftformat update on failure
2428 if : ${{ failure() && steps.check-format.outcome == 'failure' }}
@@ -55,12 +59,15 @@ jobs:
5559 with :
5660 xcode-version : ' 26.3'
5761
62+ - uses : taiki-e/install-action@v2
63+ with :
64+ tool : just
65+
5866 - name : Build iOS XCFramework
59- run : ./build-ios.sh --release
60- working-directory : common
67+ run : just build-ios --release
6168
6269 - name : Ensure that Package.swift is NOT configured for local development at this stage (easy to forget)
63- run : sed -i '' 's/let useLocalFramework = true/let useLocalFramework = false/' Package. swift
70+ run : just set-package- swift-release
6471
6572 - name : Detect changed files (it is easy to forget about ferrostar.swift)
6673 run : |
@@ -102,8 +109,12 @@ jobs:
102109 - name : Checkout repo
103110 uses : actions/checkout@v6
104111
112+ - uses : taiki-e/install-action@v2
113+ with :
114+ tool : just
115+
105116 - name : Configure Package.swift for local development
106- run : sed -i '' 's/let useLocalFramework = false/let useLocalFramework = true/' Package. swift
117+ run : just set-package- swift-local
107118
108119 - name : Download libferrostar-rs.xcframework
109120 uses : actions/download-artifact@v4
@@ -143,22 +154,17 @@ jobs:
143154 group : ${{ github.workflow }}-${{ github.ref }}-ios-test
144155 cancel-in-progress : true
145156 needs : build-ferrostar
146- strategy :
147- matrix :
148- scheme : [
149- FerrostarCore-Package
150- ]
151- destination : [
152- # TODO: Add more destinations
153- ' platform=iOS Simulator,name=iPhone 17 Pro,OS=26.2'
154- ]
155157
156158 steps :
157159 - name : Checkout repo
158160 uses : actions/checkout@v6
159161
162+ - uses : taiki-e/install-action@v2
163+ with :
164+ tool : just
165+
160166 - name : Configure Package.swift for local development
161- run : sed -i '' 's/let useLocalFramework = false/let useLocalFramework = true/' Package. swift
167+ run : just set-package- swift-local
162168
163169 - name : Download libferrostar-rs.xcframework.
164170 uses : actions/download-artifact@v4
@@ -177,8 +183,8 @@ jobs:
177183 - name : Install xcbeautify
178184 run : brew install xcbeautify
179185
180- - name : Test ${{ matrix.scheme }} on ${{ matrix.destination }}
181- run : xcodebuild -scheme ${{ matrix.scheme }} test -skipMacroValidation -destination '${{ matrix.destination }}' -resultBundlePath ${{ matrix.scheme }}.xcresult | xcbeautify && exit ${PIPESTATUS[0]}
186+ - name : Test FerrostarCore-Package
187+ run : just test-ios --ci
182188
183189 - name : ' Upload Package.swift Artifact'
184190 uses : actions/upload-artifact@v4
@@ -191,6 +197,6 @@ jobs:
191197 uses : actions/upload-artifact@v4
192198 if : always()
193199 with :
194- name : ${{ matrix.scheme }} .xcresult
195- path : ${{ matrix.scheme }} .xcresult
200+ name : FerrostarCore-Package .xcresult
201+ path : FerrostarCore-Package .xcresult
196202 retention-days : 5
0 commit comments