Only sync README in sync README CI. #235
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: "Gradle Build" | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
java: [ 21 ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: "Set up Java" | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: ${{ matrix.java }} | |
- name: "Set up Gradle" | |
uses: gradle/actions/setup-gradle@v3 | |
with: | |
cache-read-only: ${{ !startsWith(github.ref, 'refs/heads/1.') && !startsWith(github.ref, 'refs/heads/dev/') && !startsWith(github.ref, 'refs/tags/v') }} | |
- name: "Build with Gradle" | |
run: ./gradlew build --parallel --stacktrace | |
- name: "Upload artifacts" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Artifacts_j${{ matrix.java }} | |
path: ./build/libs/ |