update Gradle to 8.6 #321
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- '**.md' | |
- 'LICENSE' | |
- '.gitignore' | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- '**.md' | |
- 'LICENSE' | |
- '.gitignore' | |
workflow_dispatch: | |
concurrency: | |
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: "11" | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Cache Kotlin Konan | |
id: cache-kotlin-konan | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.konan/**/* | |
key: kotlin-konan-${{ runner.os }} | |
- uses: gradle/gradle-build-action@v2 | |
with: | |
gradle-home-cache-cleanup: true | |
arguments: build --stacktrace | |
publish: | |
# only publish after 'build' was successful, and this workflow is running on master branch | |
needs: build | |
if: github.ref == 'refs/heads/master' | |
uses: ./.github/workflows/publish.yml | |
secrets: inherit |