kmath/.github/workflows/build.yml

42 lines
1.0 KiB
YAML
Raw Normal View History

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-04-06 11:15:47 +03:00
timeout-minutes: 30
2020-12-07 00:28:54 +03:00
steps:
2021-02-28 13:06:47 +03:00
- name: Checkout the repo
uses: actions/checkout@v2
2020-12-07 00:28:54 +03:00
- name: Set up JDK 11
2021-04-30 16:28:55 +03:00
uses: DeLaGuardo/setup-graalvm@4.0
2020-12-07 00:28:54 +03:00
with:
2021-04-30 16:28:55 +03:00
graalvm: 21.1.0
java: java11
arch: amd64
2020-12-07 00:28:54 +03:00
- name: Cache gradle
uses: actions/cache@v2
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
uses: actions/cache@v2
with:
2021-02-28 13:06:47 +03:00
path: ~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build
2021-07-29 19:55:27 +03:00
run: ./gradlew build --build-cache --no-daemon --stacktrace