chore: dependency updates - kotlin 1.9.23, java 21, gradle 8.7 #26
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, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the Repository | |
uses: actions/checkout@v3 | |
- name: Setup jdk21 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: "21.0.2" | |
cache: gradle | |
- name: Validate gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Gradle build | |
# TODO enable tests on CI | |
run: ./gradlew -x test --no-daemon build --stacktrace | |
- name: Cleanup Gradle Cache | |
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions. | |
# Restoring these files from a GitHub Actions cache might cause problems for future builds. | |
run: | | |
rm -f ~/.gradle/caches/modules-2/modules-2.lock | |
rm -f ~/.gradle/caches/modules-2/gc.properties |