This repository was archived by the owner on Jul 16, 2026. It is now read-only.
Java CI with Gradle (Kotlin DSL) #199
This file contains hidden or 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: Java CI with Gradle (Kotlin DSL) | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| # Checkout the repository | |
| - uses: actions/checkout@v4 | |
| # Set up JDK 17 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| # Setup Gradle with caching | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| validate-wrappers: false | |
| # Make Gradle Wrapper executable | |
| - name: Make Gradle Wrapper executable | |
| run: chmod +x gradlew | |
| # Build project and run tests | |
| - name: Build with Gradle Wrapper | |
| run: ./gradlew build | |
| # Upload runnable artifact jar | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: tinyblox-jar | |
| path: lwjgl3/build/libs/*.jar | |