-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 1.2 KB
/
ci.yaml
File metadata and controls
35 lines (33 loc) · 1.2 KB
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
name: CI
on: [pull_request, push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# OSX takes 2x longer to build i.e. usually 8m instead of 4m for the linux/windows builds
# maybe want to skip it for non-release builds. Alternatively maybe parallelize the osx targets
# e.g. one VM can do buildMacosX64 buildMacosArm64 buildIosX64
# and the other can do buildIosArm64 buildIosSimulatorArm64
# or something like that
os: [ ubuntu-latest, windows-latest ] #, macOS-latest
include:
- os: ubuntu-latest
platform: linux
build_command: build
# - os: macOS-latest
# platform: mac
# build_command: build
- os: windows-latest
platform: windows
build_command: build
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- run: ./gradlew ${{ matrix.build_command }} -Pplatform=${{ matrix.platform }} --stacktrace -Pnosign -PisCI