Skip to content

Commit

Permalink
install msys2 gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Mar 14, 2023
1 parent ee7b8ef commit 2e961cf
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ jobs:
echo 'C:\ProgramData\chocolatey\lib\octave.portable\tools\octave\mingw64\bin' | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo 'C:\ProgramData\Chocolatey\lib\mingw\tools\install\mingw64\bin\' | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo 'MW_MINGW64_LOC=/c/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/' | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- name: Install msys2 libraries (Windows only)
if: ${{ runner.os == 'Windows' }}
uses: msys2/setup-msys2@v2
with:
update: true
install: >-
mingw-w64-gcc
mingw-w64-zlib
mingw-w64-winpthreads-git
- name: Install OpenCL.dll and static libraries (Windows only)
if: ${{ runner.os == 'Windows' }}
run: |
Expand All @@ -53,11 +62,6 @@ jobs:
cp bin/OpenCL.dll 'c:\Windows\System32'
cd ..
rm -rf opencl
ls /c/msys64/usr/bin
ln -s /c/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/bin/gcc.exe /c/msys64/usr/bin/
ln -s /c/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/bin/gcc.exe /c/msys64/usr/bin/cc.exe
ln -s /c/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/bin/g++.exe /c/msys64/usr/bin/
ln -s /c/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/bin/c++.exe /c/msys64/usr/bin/
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v1
- name: Update RCS keywords
Expand Down

0 comments on commit 2e961cf

Please sign in to comment.