[ci] install matlab 2023b on apple silicon #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release package quality test | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
release_test: | |
name: Release package tests | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, macos-13, macos-14, windows-2019, windows-2022] | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set env | |
run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Download release package | |
if: ${{ runner.os == 'Linux' }} | |
run: | | |
sudo apt-get update && sudo apt-get install -y octave ocl-icd-opencl-dev libpocl2 pocl-opencl-icd | |
curl -s -L -O https://mcx.space/nightly/linux64/MCXStudio-linux64-${{ env.RELEASE_TAG }}.zip | |
unzip -o MCXStudio-linux64-${{ env.RELEASE_TAG }}.zip | |
- name: Install dependencies (MacOS only) | |
if: ${{ runner.os == 'macOS' && matrix.os != 'macos-14' }} | |
run: | | |
curl -L -o Octave-9.2-Intel.dmg --insecure https://github.com/octave-app/octave-app/releases/download/v9.2/Octave-9.2-Intel.dmg | |
xattr -c Octave-*.dmg | |
sudo hdiutil attach Octave-9.2-Intel.dmg | |
sudo cp -a /Volumes/Octave\ 9.2/Octave-9.2.app /Applications | |
sudo hdiutil detach /Volumes/Octave\ 9.2 | |
rm -rf Octave-9.2-Intel.dmg | |
echo "/Applications/Octave-9.2.app/Contents/Resources/usr/Cellar/octave-octapp@9.2.0/9.2.0/bin" >> $GITHUB_PATH | |
curl -s -L -O https://mcx.space/nightly/macos64/MCXStudio-macos-x86_64-${{ env.RELEASE_TAG }}.zip | |
unzip -o MCXStudio-macos-x86_64-${{ env.RELEASE_TAG }}.zip | |
- name: Install dependencies (MacOS only) | |
if: ${{ runner.os == 'macOS' && matrix.os == 'macos-14' }} | |
run: | | |
brew install octave | |
curl -s -L -O https://mcx.space/nightly/macos64/MCXStudio-macos-arm64-${{ env.RELEASE_TAG }}.zip | |
unzip -o MCXStudio-macos-arm64-${{ env.RELEASE_TAG }}.zip | |
- name: Install dependencies (Windows only) | |
if: ${{ runner.os == 'Windows' }} | |
run: | | |
choco install octave.portable --version=9.2.0 | |
echo 'C:\ProgramData\chocolatey\lib\octave.portable\tools\octave\mingw64\bin' >> $GITHUB_PATH | |
curl -s -L -O https://mcx.space/nightly/win64/MCXStudio-win64-${{ env.RELEASE_TAG }}.zip | |
unzip -o MCXStudio-win64-${{ env.RELEASE_TAG }}.zip | |
- name: Install OpenCL.dll and static libraries (Windows only) | |
if: ${{ runner.os == 'Windows' }} | |
run: | | |
vcpkg --triplet=x64-windows install opencl | |
cp 'c:\vcpkg\packages\opencl_x64-windows\bin\OpenCL.dll' 'c:\Windows\System32' | |
- name: Test mcx | |
if: ${{ matrix.os != 'macos-14' }} | |
run: | | |
cd MCXStudio/MCXSuite/mcx/bin | |
./mcx -L || true | |
./mcx -Q || true | |
./mcx -N || true | |
./mcx -Q cube60b --dumpjson || true | |
cd ../test | |
./testmcx.sh || true | |
- name: Test mcxcl | |
run: | | |
cd MCXStudio/MCXSuite/mcxcl/test | |
../bin/mcxcl -L || true | |
../bin/mcxcl -Q cube60 || true | |
../bin/mcxcl -Q cube60b || true | |
./testmcx.sh || true | |
- name: Test mmc | |
run: | | |
cd MCXStudio/MCXSuite/mmc/bin | |
./mmc -L || true | |
./mmc -Q dmmc-cube60 || true | |
./mmc -Q dmmc-cube60b || true | |
./mmc -Q dmmc-cube60 -G -1 -D P || true | |
./mmc -Q dmmc-cube60b -G -1 -D P || true | |
./mmc -Q edgeimmc -G -1 || true | |
./mmc -Q nodeimmc -G -1 || true | |
./mmc -Q faceimmc -G -1 || true | |
- name: Set up MATLAB | |
uses: matlab-actions/setup-matlab@v4 | |
with: | |
release: R2023b | |
- name: Run MATLAB mcxlabcl test | |
continue-on-error: true | |
uses: matlab-actions/run-command@v2 | |
with: | |
command: cd MCXStudio; mcxsuite_addpath; cd MATLAB/mcxlabcl/examples; demo_mcxlab_basic; demo_mcxlab_2d; demo_mcxlab_replay; demo_bc_det; demo_photon_sharing; | |
- name: Run MATLAB mmclab test | |
continue-on-error: true | |
uses: matlab-actions/run-command@v2 | |
with: | |
command: cd MCXStudio; mcxsuite_addpath; cd MATLAB/mmclab/example; demo_mmclab_basic; demo_example_meshtest; demo_example_replay; demo_wide_det; demo_photon_sharing; |