aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
blob: 53f8a452e0ac2a6348c0cfc0129cc6c5670d56ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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@v2.4.0
      - name: Set up JDK ${{ matrix.java }}
        uses: actions/setup-java@v2.5.0
        with:
          distribution: adopt
          java-version: ${{ matrix.java }}
      - name: Cache Gradle
        uses: actions/cache@v2.1.7
        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@v2.3.1
        with:
          name: LimboAuth Built On ${{ matrix.java }} JDK
          path: "build/libs/limboauth*.jar"