From 81167edf4045b2773f906d65345e93d14747a986 Mon Sep 17 00:00:00 2001 From: Besmir Beqiri Date: Fri, 27 Oct 2023 17:25:36 +0200 Subject: [PATCH] Update CI builds workflow using a `matrix` configuration --- .github/workflows/linux.yml | 17 ----------------- .github/workflows/linux17.yml | 17 ----------------- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 34 deletions(-) delete mode 100644 .github/workflows/linux.yml delete mode 100644 .github/workflows/linux17.yml create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml deleted file mode 100644 index 72a35d9..0000000 --- a/.github/workflows/linux.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Linux build - -on: [push] - -jobs: - builds: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 - with: - distribution: 'temurin' - java-version: '11' - - name: compile - run: | - ./gradlew clean jar \ No newline at end of file diff --git a/.github/workflows/linux17.yml b/.github/workflows/linux17.yml deleted file mode 100644 index f3fed65..0000000 --- a/.github/workflows/linux17.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Linux build - -on: [push] - -jobs: - builds: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 - with: - distribution: 'temurin' - java-version: '17' - - name: compile - run: | - ./gradlew clean jar \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..97bbb53 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +name: CI build + +on: [push] + +jobs: + builds: + name: ${{ matrix.os }} with Java ${{ matrix.jdk }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + - os: ubuntu-latest + jdk: 17 + - os: ubuntu-latest + jdk: 21 + - os: windows-latest + jdk: 17 + - os: windows-latest + jdk: 21 + fail-fast: false + max-parallel: 4 + timeout-minutes: 15 + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Setup Java ${{ matrix.jdk }} + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: ${{ matrix.jdk }} + - name: Compile + run: | + ./gradlew clean jar \ No newline at end of file