From 71132015e0bfed8ffd2ad128bbacc65fff12a010 Mon Sep 17 00:00:00 2001 From: yadda yadda yadda Date: Sun, 2 Jun 2024 21:20:33 +0200 Subject: [PATCH] add mac-arm64 ci (#84) * add mac-arm64 ci * add more targets --- .github/workflows/maven.yml | 38 +++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 3059907..1260f00 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -14,21 +14,49 @@ jobs: runs-on: ${{ matrix.platform }} strategy: matrix: - java: [11, 17, 21] - platform: [ubuntu-20.04, macos-11, windows-2019] + include: + - jvm: 11 + platform: ubuntu-22.04 + architecture: x64 + - jvm: 17 + platform: ubuntu-22.04 + architecture: x64 + - jvm: 21 + platform: ubuntu-22.04 + architecture: x64 + - jvm: 11 + platform: macos-12 + architecture: x64 + - jvm: 11 + platform: macos-14 + architecture: aarch64 + - jvm: 11 + platform: windows-2022 + architecture: x64 + - jvm: 17 + platform: windows-2022 + architecture: x64 + - jvm: 21 + platform: windows-2022 + architecture: x64 steps: - name: install libomp run: brew install libomp if: runner.os == 'macOS' + - uses: actions/checkout@v2 with: lfs: true + - name: Checkout LFS objects run: git lfs checkout + - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: - java-version: ${{ matrix.java }} + java-version: ${{ matrix.jvm }} + architecture: ${{ matrix.architecture }} + distribution: 'temurin' - name: Cache maven packages uses: actions/cache@v2 @@ -41,7 +69,9 @@ jobs: ${{ runner.os }}-build-${{ env.cache-name }}- ${{ runner.os }}-build- ${{ runner.os }}- + - name: Build with Maven run: mvn -B compile --file pom.xml + - name: Run tests run: mvn -B test --file pom.xml