name: Java CI with Gradle on: [ push, pull_request ] jobs: build: runs-on: ubuntu-latest strategy: matrix: java: [ 11, 16 ] fail-fast: true steps: - name: Checkout uses: actions/checkout@v3.0.0 - name: Set up JDK ${{ matrix.java }} uses: actions/setup-java@v3.0.0 with: distribution: adopt java-version: ${{ matrix.java }} - name: Cache Gradle uses: actions/cache@v3.0.1 with: path: ~/.gradle key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} restore-keys: ${{ runner.os }}-gradle- - name: Build LimboAuth run: ./gradlew build - name: Upload LimboAuth uses: actions/upload-artifact@v3.0.0 with: name: LimboAuth Built On ${{ matrix.java }} JDK path: "build/libs/limboauth*.jar"