diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 38dcf29..6c78975 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,22 +1,27 @@ -name: Gradle build +name: Build with Gradle on: push: branches: [ master ] pull_request: branches: [ master ] + workflow_dispatch: jobs: build: - runs-on: ubuntu-latest - + strategy: + fail-fast: false + matrix: + java: [17] # This is for easier updating in the future if MC updates Java again steps: - - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - uses: actions/checkout@v3 + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v3 with: - java-version: 1.8 + java-version: ${{ matrix.java }} + distribution: temurin + cache: gradle - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle