Skip to content

Commit db39d46

Browse files
committed
install g++ 10 on ubuntu
1 parent 203fa2b commit db39d46

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build.yml

+10
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ jobs:
4848
run: brew install python-setuptools
4949
- if: ${{ !startsWith(matrix.os, 'windows') && !startsWith(matrix.os, 'macos') }}
5050
run: python3 -m pip install setuptools
51+
- if: ${{ startsWith(matrix.os, 'ubuntu') }}
52+
run: |
53+
sudo apt update
54+
sudo apt install gcc-10 g++-10 -y
55+
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 --slave /usr/bin/gcov gcov /usr/bin/gcov-10
5156
- run: npm install --ignore-scripts
5257
- run: npm run build-debug
5358
- run: npm test
@@ -101,6 +106,11 @@ jobs:
101106
run: brew install python-setuptools
102107
- if: ${{ !startsWith(matrix.os, 'windows') && !startsWith(matrix.os, 'macos') }}
103108
run: python3 -m pip install setuptools
109+
- if: ${{ startsWith(matrix.os, 'ubuntu') }}
110+
run: |
111+
sudo apt update
112+
sudo apt install gcc-10 g++-10 -y
113+
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 --slave /usr/bin/gcov gcov /usr/bin/gcov-10
104114
- run: npm install --ignore-scripts
105115
- run: ${{ env.NODE_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}
106116
- run: ${{ env.ELECTRON_BUILD_CMD }} -u ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)