2021-03-08 21:03:48 +03:00
|
|
|
name: Gradle build
|
2021-02-28 13:14:41 +03:00
|
|
|
|
2021-06-08 16:53:33 +03:00
|
|
|
on:
|
|
|
|
push:
|
2021-07-20 20:00:35 +03:00
|
|
|
branches: [ dev, master ]
|
2021-06-08 16:53:33 +03:00
|
|
|
pull_request:
|
2019-12-08 10:59:49 +03:00
|
|
|
|
|
|
|
jobs:
|
2021-02-28 13:06:47 +03:00
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ macOS-latest, windows-latest ]
|
|
|
|
runs-on: ${{matrix.os}}
|
2021-08-05 12:09:12 +03:00
|
|
|
timeout-minutes: 40
|
2020-12-07 00:28:54 +03:00
|
|
|
steps:
|
2022-03-31 23:06:07 +03:00
|
|
|
- uses: actions/checkout@v3.0.0
|
|
|
|
- uses: actions/setup-java@v3.0.0
|
2020-12-07 00:28:54 +03:00
|
|
|
with:
|
2022-03-31 22:23:34 +03:00
|
|
|
java-version: 11
|
|
|
|
distribution: liberica
|
2020-12-07 00:28:54 +03:00
|
|
|
- name: Cache gradle
|
2022-03-31 23:06:07 +03:00
|
|
|
uses: actions/cache@v3.0.1
|
2020-12-07 00:28:54 +03:00
|
|
|
with:
|
2021-07-20 20:00:35 +03:00
|
|
|
path: |
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/wrapper
|
2021-02-28 13:06:47 +03:00
|
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-gradle-
|
2020-12-07 00:28:54 +03:00
|
|
|
- name: Cache konan
|
2022-03-31 23:06:07 +03:00
|
|
|
uses: actions/cache@v3.0.1
|
2020-12-07 00:28:54 +03:00
|
|
|
with:
|
2021-02-28 13:06:47 +03:00
|
|
|
path: ~/.konan
|
|
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-gradle-
|
2021-09-27 13:36:48 +03:00
|
|
|
- name: Gradle Wrapper Validation
|
|
|
|
uses: gradle/wrapper-validation-action@v1.0.4
|
2021-02-28 13:06:47 +03:00
|
|
|
- name: Build
|
2021-07-29 19:55:27 +03:00
|
|
|
run: ./gradlew build --build-cache --no-daemon --stacktrace
|