Skip to content

Commit

Permalink
Build on each XCode version supporting a Swift version
Browse files Browse the repository at this point in the history
  • Loading branch information
stoyicker committed Apr 15, 2024
1 parent 8e4a760 commit 64cebcc
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 64cebcc

Please sign in to comment.