diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4656000..1383022 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,28 +11,28 @@ jobs: strategy: matrix: # Use these Java versions - java: [ - 21 # Latest version - ] + java: [ 21 ] + distro: [ temurin ] # and run on both Linux and Windows - os: [ubuntu-latest] + os: [ ubuntu-latest ] runs-on: ${{ matrix.os }} steps: - name: checkout repository uses: actions/checkout@v4 - name: validate gradle wrapper - uses: gradle/actions/wrapper-validation@v3 + uses: gradle/actions/wrapper-validation@v4 - name: setup jdk ${{ matrix.java }} uses: actions/setup-java@v4 with: + distribution: ${{ matrix.distro }} java-version: ${{ matrix.java }} - distribution: 'microsoft' - name: make gradle wrapper executable if: ${{ runner.os != 'Windows' }} run: chmod +x ./gradlew - name: build run: ./gradlew build - name: capture build artifacts + if: ${{ runner.os == 'Linux' }} uses: actions/upload-artifact@v4 with: name: Artifacts