Skip to content

Commit 311412d

Browse files
authored
Update build.yml
1 parent f66eed6 commit 311412d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,19 @@ jobs:
4242
add-apt-repository -y ppa:git-core/ppa # For git>=2.18.
4343
apt-get update
4444
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
4745
4846
- name: Install aarch64-linux-gnu
4947
if: ${{ matrix.platform == 'linux-arm64' }}
5048
run: |
5149
apt-get update
5250
apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
5351
52+
- name: Prepare container
53+
if: ${{ matrix.target == 'linux' }}
54+
run: |
55+
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100
56+
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 100
57+
5458
- uses: actions/checkout@v3
5559
with:
5660
submodules: recursive

0 commit comments

Comments
 (0)