From 3307ce88d099afef873cce61fa7233ee39a9acff Mon Sep 17 00:00:00 2001 From: carlosuc3m <100329787@alumnos.uc3m.es> Date: Wed, 11 Sep 2024 11:19:06 +0200 Subject: [PATCH] check if running works on intel mac --- .github/workflows/build.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 55c33f3..74d8a72 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -36,6 +36,12 @@ jobs: cxx-compiler: "clang++" cmake-build-type: "Release" cmake-build-flag: "" + - name: macos-intel + os: macos-13 + c-compiler: "clang" + cxx-compiler: "clang++" + cmake-build-type: "Release" + cmake-build-flag: "" runs-on: ${{ matrix.os }} steps: @@ -78,11 +84,13 @@ jobs: run: mvn clean install -DskipTests shell: bash - - name: Run Java class (only possible on MacOS) + - name: Run Java class (only possible on MacOS intel) if: contains(matrix.os, 'macos') run: | - mvn dependency:build-classpath -Dmdep.outputFile=classpath.txt - java -cp target/classes:$(cat classpath.txt) net.clesperanto.ClesperantoJ + if [[ $(uname -m) == 'x86_64' ]]; then + mvn dependency:build-classpath -Dmdep.outputFile=classpath.txt + java -cp target/classes:$(cat classpath.txt) net.clesperanto.ClesperantoJ + fi - name: Get Maven Version and Upload Artifact shell: bash run: |