From 45bc0dae94f9be88ef9d5b34a3a7d9c00a6f23e0 Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Wed, 13 Mar 2024 13:11:46 -0400 Subject: [PATCH] [ci] let gcc find libgomp.a --- .github/workflows/build_all.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_all.yml b/.github/workflows/build_all.yml index 46414bb..634369f 100644 --- a/.github/workflows/build_all.yml +++ b/.github/workflows/build_all.yml @@ -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) @@ -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 @@ -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