-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.03 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
39
40
name: Gradle build
on:
push:
branches: [ dev, master ]
pull_request:
jobs:
build:
strategy:
matrix:
os: [ ubuntu-20.04, windows-2019 ]
runs-on: ${{matrix.os}}
timeout-minutes: 40
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 11
distribution: liberica
- if: matrix.os == 'windows-2019'
uses: msys2/setup-msys2@v2
with:
release: false
path-type: inherit
- if: matrix.os == 'windows-2019'
shell: msys2 {0}
run: pacman --noconfirm -S mingw-w64-x86_64-gsl
- name: Cache konan
uses: actions/cache@v3
with:
path: ~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1.0.4
- uses: gradle/gradle-build-action@v2.3.3
with:
arguments: build