-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build on each XCode version supporting a Swift version
- Loading branch information
Showing
1 changed file
with
28 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 |
---|---|---|
|
@@ -4,10 +4,37 @@ on: | |
branches: | ||
- '**' | ||
jobs: | ||
root: | ||
generate-build-matrix: | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
pairs: ${{ steps.generate.outputs.pairs }} | ||
steps: | ||
- uses: actions/[email protected] | ||
- run: npm install @plist/parse | ||
- id: generate | ||
run: | | ||
pair_list=() | ||
for plist in $(find /Applications/Xcode.*\.app/Contents/version.plist); do | ||
pair_list+=$(/usr/libexec/PlistBuddy -c "print CFBundleShortVersionString" $plist) | ||
done | ||
jsonString="$(jq - --null-input '$ARGS.positional' --args -- "${pair_list[@]}")" | ||
echo "pairs=$jsonString" >> $GITHUB_OUTPUT | ||
build: | ||
runs-on: macos-14-xlarge | ||
needs: [ generate-build-matrix ] | ||
strategy: | ||
matrix: | ||
pair: ${{ fromJSON(needs.generate-build-matrix.outputs.pairs) }} | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: maxim-lobanov/[email protected] | ||
with: | ||
xcode-version: ${{ matrix.pair }} | ||
- uses: ./.github/actions/runGradleTask | ||
with: | ||
task: build | ||
barrier-build: | ||
runs-on: ubuntu-22.04 | ||
needs: [ build ] | ||
steps: | ||
- run: exit 0 |