Skip to content

Commit

Permalink
use computer arch tag for octave
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Mar 11, 2023
1 parent 4d04f44 commit 1faa998
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ jobs:
make oct CC=gcc CXX=g++ LIBOPENCL='/c/Windows/System32/OpenCL.dll --verbose'
file ../mmclab/mmc.mex
fi
octave-cli --eval "fprintf(1,['OCTAVE_ARCH=' computer])"
octave-cli --eval "fprintf(1,['OCTAVE_ARCH=' computer])" >> $GITHUB_ENV
octave-cli --eval "fprintf(1,['OCTAVE_ARCH=' computer('arch')])"
octave-cli --eval "fprintf(1,['OCTAVE_ARCH=' computer('arch')])" >> $GITHUB_ENV
- name: Build binary
run: |
cd src
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
- name: Create all-in-one octave mmclab
run: |
cd packages
unzip mmclab*.zip -d mmclab
unzip 'mmclab*.zip' -d mmclab
zip -FSr --symlink mmclab-octave-allinone-github-latest.zip mmclab
rm -rf mmclab
- name: Display structure of downloaded files
Expand Down
2 changes: 1 addition & 1 deletion mmclab/PKG_ADD
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if(exist(file_in_loadpath('mmc.mex')))
autoload('mmc',file_in_loadpath('mmc.mex'))
else
autoload('mmc',file_in_loadpath(['octave' filesep computer filesep 'mmc.mex']))
autoload('mmc',file_in_loadpath(['octave' filesep computer('arch') filesep 'mmc.mex']))
end

0 comments on commit 1faa998

Please sign in to comment.