From fe6773aff2096abd0266e9dbfafb5933deccd8d4 Mon Sep 17 00:00:00 2001 From: NotCoded <66999075+not-coded@users.noreply.github.com> Date: Fri, 22 Nov 2024 21:54:59 +0100 Subject: [PATCH] specify distribution --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 637c109..2a84d39 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,12 +10,16 @@ jobs: build: strategy: matrix: - # Use these Java versions java: [ 21, ] - # and run on both Linux and Windows + + distribution: [ + "temurin", + ] + os: [ubuntu-20.04, windows-2022] + runs-on: ${{ matrix.os }} steps: - name: checkout repository @@ -26,6 +30,7 @@ jobs: uses: actions/setup-java@v4 with: java-version: ${{ matrix.java }} + distribution: ${{ matrix.distribution }} - name: make gradle wrapper executable if: ${{ runner.os != 'Windows' }} run: chmod +x ./gradlew