Skip to content

Commit

Permalink
[ci] speedup macos-13 and windows octave download
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Nov 14, 2024
1 parent 299b920 commit 96b8dbc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,29 @@ 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' && matrix.os == 'macos-12' }}
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
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' }}
if: ${{ runner.os == 'macOS' && matrix.os == 'macos-14' }}
run: |
brew install octave
#brew install upx
- name: Install dependencies (Windows only)
if: ${{ runner.os == 'Windows' }}
run: |
choco install octave.portable --version=9.2.0
#choco install octave.portable --version=9.2.0
#echo 'C:\ProgramData\chocolatey\lib\octave.portable\tools\octave\mingw64\bin' >> $GITHUB_PATH
curl --retry 3 -kL http://cdimage.debian.org/mirror/gnu.org/gnu/octave/windows/octave-9.2.0-w64-64.7z --output octave_9.2.7z
7z x octave_9.2.7z -ooctave -y
rm -rf octave_9.2.7z
echo "$PWD/octave/octave-9.2.0-w64-64/mingw64/bin" >> $GITHUB_PATH
choco install upx
choco install mingw --version=8.1.0
echo 'C:\ProgramData\chocolatey\lib\octave.portable\tools\octave\mingw64\bin' >> $GITHUB_PATH
echo 'C:\ProgramData\Chocolatey\lib\mingw\tools\install\mingw64\bin\' >> $GITHUB_PATH
echo 'MW_MINGW64_LOC=/c/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64' >> $GITHUB_ENV
- name: Install OpenCL.dll and static libraries (Windows only)
Expand Down

0 comments on commit 96b8dbc

Please sign in to comment.