Skip to content

Commit

Permalink
check if running works on intel mac
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Sep 11, 2024
1 parent d677bc4 commit 3307ce8
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 3307ce8

Please sign in to comment.