forked from kscience/kmath
33 lines
800 B
YAML
33 lines
800 B
YAML
name: Gradle build
|
|
|
|
on:
|
|
push:
|
|
branches: [ dev, master ]
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
os: [ macOS-latest, windows-latest ]
|
|
runs-on: ${{matrix.os}}
|
|
timeout-minutes: 40
|
|
steps:
|
|
- uses: actions/checkout@v3.0.0
|
|
- uses: actions/setup-java@v3.0.0
|
|
with:
|
|
java-version: 11
|
|
distribution: liberica
|
|
- name: Cache konan
|
|
uses: actions/cache@v3.0.1
|
|
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.1.5
|
|
with:
|
|
arguments: build
|