Skip to content

Commit

Permalink
Removed osx-arm64 on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pariterre committed Aug 14, 2024
1 parent d203f59 commit 9028d85
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish_matlab_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-13, windows-latest]
os: [ubuntu-latest, macos-13, windows-latest]
include:
- os: ubuntu-latest
label: linux-64
prefix: /usr/share/miniconda3/envs/ezc3d
- os: macos-latest
label: osx-arm64
prefix: /Users/runner/miniconda3/envs/ezc3d
# - os: macos-latest
# label: osx-arm64
# prefix: /Users/runner/miniconda3/envs/ezc3d
- os: macos-13
label: osx-intel
prefix: /Users/runner/miniconda3/envs/ezc3d
Expand Down Expand Up @@ -62,9 +62,10 @@ jobs:
cache: true
if: matrix.label != 'osx-arm64'

- name: Install MATLAB on MACOS-arm64
- name: Install MATLAB on MACOS-Arm64
uses: matlab-actions/setup-matlab@v2
with:
# The version of MATLAB of R2024a does not contain MX_LIBRARY
release: R2023a
cache: true
if: matrix.label == 'osx-arm64'
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/run_matlab_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-13, windows-latest]
os: [ubuntu-latest, macos-13, windows-latest]
include:
- os: ubuntu-latest
label: linux-64
prefix: /usr/share/miniconda3/envs/ezc3d
- os: macos-latest
label: osx-arm64
prefix: /Users/runner/miniconda3/envs/ezc3d
# - os: macos-latest
# label: osx-arm64
# prefix: /Users/runner/miniconda3/envs/ezc3d
- os: macos-13
label: osx-intel
prefix: /Users/runner/miniconda3/envs/ezc3d
Expand Down Expand Up @@ -60,9 +60,10 @@ jobs:
cache: true
if: matrix.label != 'osx-arm64'

- name: Install MATLAB on MACOS
- name: Install MATLAB on MACOS-Arm64
uses: matlab-actions/setup-matlab@v2
with:
# The version of MATLAB of R2024a does not contain MX_LIBRARY
release: R2023a
cache: true
if: matrix.label == 'osx-arm64'
Expand All @@ -80,7 +81,7 @@ jobs:
make install -j${{ steps.cpu-cores.outputs.count }}
cd $MAIN_FOLDER
if: matrix.label != 'win-64'

- name: Build ezc3d on WINDOWS
run: |
MAIN_FOLDER=`pwd`
Expand Down
8 changes: 4 additions & 4 deletions binding/matlab/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,18 @@ foreach(SUFFIXES Read Write)
)
endif(CMAKE_CL_64)
elseif(APPLE)
if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
if (CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "x86_64")
set_target_properties(${PROJECT_NAME}_${SUFFIXES} PROPERTIES
SUFFIX ".mexmaci64"
PREFIX ""
)
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64")
set_target_properties(${PROJECT_NAME}_${SUFFIXES} PROPERTIES
SUFFIX ".mexmaca64"
PREFIX ""
)
else()
message(FATAL_ERROR "Unknown architecture: ${CMAKE_SYSTEM_PROCESSOR}")
message(FATAL_ERROR "Unknown architecture: ${CMAKE_HOST_SYSTEM_PROCESSOR}")
endif ()
else()
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
Expand All @@ -76,7 +76,7 @@ foreach(SUFFIXES Read Write)
PREFIX ""
)
endif (CMAKE_SIZEOF_VOID_P MATCHES "8")
endif(WIN32)
endif()


# Set runtime path for linux
Expand Down

0 comments on commit 9028d85

Please sign in to comment.