Skip to content

Commit

Permalink
[ci] add install octave using dmg
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Nov 14, 2024
1 parent f8bb370 commit 299b920
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,22 @@ jobs:
if: ${{ matrix.os == 'ubuntu-24.04' }}
run: sudo apt-get update && sudo apt-get install -y ocl-icd-libopencl1 opencl-headers ocl-icd-opencl-dev octave-dev upx-ucl
- name: Install dependencies (MacOS only)
if: ${{ runner.os == 'macOS' }}
if: ${{ runner.os == 'macOS' && matrix.os == 'macos-12' }}
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
echo "/Applications/Octave-9.2.app/Contents/Resources/usr/Cellar/[email protected]/9.2.0/bin" >> $GITHUB_PATH
- name: Install dependencies (MacOS only)
if: ${{ runner.os == 'macOS' && matrix.os != 'macos-12' }}
run: |
brew install octave
#brew install upx
- name: Install dependencies (Windows only)
if: ${{ runner.os == 'Windows' }}
run: |
choco install octave.portable --version=8.3.0
choco install octave.portable --version=9.2.0
choco install upx
choco install mingw --version=8.1.0
echo 'C:\ProgramData\chocolatey\lib\octave.portable\tools\octave\mingw64\bin' >> $GITHUB_PATH
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ OCT_LDFLAGS := $(shell mkoctfile -p LDFLAGS)

oct: BINARY=mcxcl.mex
oct: AR=XTRA_CFLAGS=' ' XTRA_CXXFLAGS=' ' CXXFLAGS='-std=c++11 $(CPPOPT) $(MEXCCOPT) $(USERCCOPT)' LDFLAGS='$(OCT_LDFLAGS) -g -L$(LIBOPENCLDIR) $(LIBOPENCL)' mkoctfile -v
oct: LINKOPT=--mex -DMATLAB_MEX_FILE mcxlabcl.cpp $(INCLUDEDIRS)
oct: LINKOPT=--mex -DMATLAB_MEX_FILE mcxlabcl.cpp $(INCLUDEDIRS) $(MEXLINKOPT)

OBJS := $(addsuffix $(OBJSUFFIX), $(FILES))
CLSOURCE := $(addsuffix $(CLHEADER), $(CLPROGRAM))
Expand Down

0 comments on commit 299b920

Please sign in to comment.