Skip to content

Commit df6a42e

Browse files
authored
Update build.yml
1 parent b88377e commit df6a42e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ jobs:
3737
if: ${{ matrix.target == 'linux' }}
3838
run: |
3939
apt-get update
40-
apt-get install -y gcc git
40+
apt-get install -y software-properties-common
41+
add-apt-repository -y ppa:ubuntu-toolchain-r/test # For gcc-9 and g++-9
42+
add-apt-repository -y ppa:git-core/ppa # For git>=2.18.
43+
apt-get update
44+
apt-get install -y sudo git gcc-9 g++-9
45+
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100
46+
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 100
4147
4248
- name: Install aarch64-linux-gnu
4349
if: ${{ matrix.platform == 'linux-arm64' }}

0 commit comments

Comments
 (0)