Skip to content

Cache konan folder in CI builds #86

Cache konan folder in CI builds

Cache konan folder in CI builds #86

Workflow file for this run

name: Build Linux
on:
push:
branches:
- main
paths-ignore:
- "**/*.md"
pull_request:
paths-ignore:
- "**/*.md"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: JDK setup
uses: actions/setup-java@v3
with:
java-version: 17
distribution: corretto
- name: Cache konan directory
uses: actions/cache@v3
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('*.gradle.kts', 'buildSrc/*') }}
restore-keys: |
${{ runner.os }}-konan-
- name: Linux build
run: |
./gradlew build publishToMavenLocal --no-daemon --stacktrace
env:
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3g"
- name: Linux sample build
run: |
cd sample
./gradlew build --no-daemon --stacktrace
env:
GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx3g"