-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (38 loc) · 1.1 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build
on:
push:
branches:
- '**'
jobs:
generate-build-matrix:
runs-on: macos-14-xlarge
outputs:
versions: ${{ steps.generate.outputs.versions }}
steps:
- id: generate
run: |
pair_list=()
for XCODE_INSTALL in $(ls /Applications | grep Xcode); do
pair_list+=$(/usr/libexec/PlistBuddy -c "print CFBundleShortVersionString" /Applications/$XCODE_INSTALL/Contents/Info.plist)
done
jsonString="$(jq -c --null-input '$ARGS.positional' --args -- "${pair_list[@]}")"
echo $pair_list
echo $jsonString
echo "versions=$jsonString" >> $GITHUB_OUTPUT
build:
runs-on: macos-14-xlarge
needs: [ generate-build-matrix ]
strategy:
matrix:
version: ${{ fromJSON(needs.generate-build-matrix.outputs.versions) }}
steps:
- uses: actions/[email protected]
- run: xcode-select -s ${{ matrix.version }}
- uses: ./.github/actions/runGradleTask
with:
task: build
barrier-build:
runs-on: ubuntu-22.04
needs: [ build ]
steps:
- run: exit 0