Merge branch 'main' into stuylib-lite #336
Workflow file for this run
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, fork, pull_request] | |
env: | |
JAVA_VERSION: 1.17 | |
GRADLE_VERSION: 8.4 | |
jobs: | |
spotless-check: | |
name: Spotless Apply | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK ${{ env.JAVA_VERSION }} | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ env.JAVA_VERSION }} | |
- name: Spotless Check - Gradle ${{ env.GRADLE_VERSION }} | |
uses: gradle/[email protected] | |
with: | |
gradle-version: ${{ env.GRADLE_VERSION }} | |
arguments: spotlessCheck | |
javadocs-check: | |
name: Javadocs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK ${{ env.JAVA_VERSION }} | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ env.JAVA_VERSION }} | |
- name: Build Javadocs - Gradle ${{ env.GRADLE_VERSION }} | |
uses: gradle/[email protected] | |
with: | |
arguments: javadoc | |
final-build: | |
name: Finalize | |
needs: | |
- spotless-check | |
- javadocs-check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK ${{ env.JAVA_VERSION }} | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ env.JAVA_VERSION }} | |
- name: Build - Gradle ${{ env.GRADLE_VERSION }} | |
uses: gradle/[email protected] | |
with: | |
arguments: build | |
- name: Upload StuyLib Build | |
uses: actions/[email protected] | |
with: | |
name: StuyLib-Release | |
path: ./build/libs/*.jar | |
retention-days: 90 |