Skip to content

Commit

Permalink
build: multi-platform build
Browse files Browse the repository at this point in the history
  • Loading branch information
kris7t committed Apr 7, 2024
1 parent 7f871fa commit 3fc2be5
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3fc2be5

Please sign in to comment.