Skip to content

Commit

Permalink
add apt source to install gcc-7
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Sep 1, 2023
1 parent add5305 commit b80e801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install dependencies (Linux only)
if: ${{ runner.os == 'Linux' }}
run: |
sudo echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu focal main universe" >> /etc/apt/sources.list
sudo add-apt-repository -s "deb [arch=amd64] http://archive.ubuntu.com/ubuntu focal main universe"
sudo apt-get update && sudo apt-get install -y ocl-icd-libopencl1 opencl-headers ocl-icd-opencl-dev liboctave-dev gcc-7 g++-7
[ -f /usr/bin/gcc-7 ] && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 7
[ -f /usr/bin/g++-7 ] && sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 7
Expand Down

0 comments on commit b80e801

Please sign in to comment.