kmath/.github/workflows/build.yml

38 lines
1.1 KiB
YAML
Raw Normal View History

2021-02-28 13:14:41 +03:00
# Based on https://github.com/touchlab/Stately/blob/main/.github/workflows/build.yml
2021-02-28 13:06:47 +03:00
name: build
2020-12-07 00:28:54 +03:00
on: [ push ]
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}}
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
uses: actions/setup-java@v1
with:
java-version: 11
- name: Add msys to path
2021-02-28 13:06:47 +03:00
if: matrix.os == 'windows-latest'
2020-12-07 00:28:54 +03:00
run: SETX PATH "%PATH%;C:\msys64\mingw64\bin"
- name: Cache gradle
uses: actions/cache@v2
with:
2021-02-28 13:06:47 +03:00
path: ~/.gradle/caches
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
run: ./gradlew build --no-daemon --stacktrace