Skip to content

Commit

Permalink
[ci] let gcc find libgomp.a
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Mar 13, 2024
1 parent da6d04e commit 45bc0da
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
brew install octave
brew install upx
- name: Link libgomp.a (MacOS only)
if: ${{ runner.os == 'macOS' }}
if: ${{ runner.os == 'macOS' && matrix.os != 'macos-14' }}
run: |
sudo ln -s /usr/local/lib/gcc/11/libgomp.a /usr/local/lib/libgomp.a
- name: Install dependencies (Windows only)
Expand All @@ -59,9 +59,14 @@ jobs:
cp bin/OpenCL.dll 'c:\Windows\System32'
cd ..
rm -rf opencl
- name: Set up MATLAB
- name: Set up MATLAB (non MacOS-14)
if: ${{ matrix.os != 'macos-14' }}
uses: matlab-actions/setup-matlab@v1
- name: Set up MATLAB (MacOS-14)
if: ${{ matrix.os == 'macos-14' }}
uses: matlab-actions/setup-matlab@v2
with:
release: R2023b
- name: Update RCS keywords
run: |
printf '\n[filter "rcs-keywords"]\n\tclean = .git_filters/rcs-keywords.clean\n\tsmudge = .git_filters/rcs-keywords.smudge %f\n' >> .git/config
Expand Down Expand Up @@ -92,7 +97,6 @@ jobs:
octave-cli --eval "fprintf(1,['OCTAVE_ARCH=' regexprep(computer('arch'), 'darwin[0-9.]+-', 'darwin-')])"
octave-cli --eval "fprintf(1,['OCTAVE_ARCH=' regexprep(computer('arch'), 'darwin[0-9.]+-', 'darwin-')])" >> $GITHUB_ENV
- name: Build mmclab for MATLAB
if: ${{ matrix.os != 'macos-14' }}
run: |
cd src
if [[ "$RUNNER_OS" == "Windows" ]]; then
Expand Down

0 comments on commit 45bc0da

Please sign in to comment.