From 3fc2be5d705bcec86ee88dd42fdfb16ff8fbd406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20Marussy?= Date: Sun, 7 Apr 2024 13:04:59 +0200 Subject: [PATCH] build: multi-platform build --- .github/workflows/build.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1d57d565c..878a96165 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,10 +13,19 @@ on: jobs: build: name: Build - runs-on: ubuntu-latest + strategy: + matrix: + os: + - ubuntu-latest + - ubuntu-20.04 + - windows-latest + - macos-13 # Intel + - macos-14 # ARM + runs-on: ${{ matrix.os }} steps: - name: Check for Sonar secret id: check-secret + if: ${{ matrix.os == 'ubuntu-latest' }} env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: | @@ -31,7 +40,7 @@ jobs: uses: actions/setup-java@v3 with: java-version: 21 - distribution: temurin + distribution: corretto - name: Cache Gradle packages uses: actions/cache@v3 with: @@ -63,14 +72,14 @@ jobs: restore-keys: ${{ runner.os }}-yarn - name: Gradle build run: | - ./gradlew build -Pci --info + ./gradlew build -Pci --info --stacktrace --max-workers 4 --no-daemon - name: Sonar analyze if: ${{ steps.check-secret.outputs.is_SONAR_TOKEN_set }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed by Sonar to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: | - ./gradlew sonar -Pci --info + ./gradlew sonar -Pci --info --stacktrace --max-workers 4 --no-daemon reuse-check: name: REUSE Compliance Check runs-on: ubuntu-latest