Skip to content

Commit 18ead2f

Browse files
authored
Fix aarch64-unknown-linux-musl build by puliing GCC 10 specifically (#1139)
Previously, there would occur a mismatch on the GCC 9 version, preventing us from installing it properly. Instead of that, try just pulling GCC 10 rather than both 9 and 10.
1 parent adc1e3d commit 18ead2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ jobs:
131131
echo deb [arch=arm64] http://azure.ports.ubuntu.com/ubuntu-ports/ $(lsb_release -c -s) main restricted universe multiverse | sudo tee /etc/apt/sources.list.d/99ports.list > /dev/null
132132
sudo dpkg --add-architecture arm64
133133
sudo apt-get update || true
134-
sudo apt-get install musl-dev:arm64 binutils-multiarch gcc-aarch64-linux-gnu libc6-dev-arm64-cross
134+
sudo apt-get install musl-dev:arm64 binutils-multiarch gcc-10-aarch64-linux-gnu libc6-dev-arm64-cross
135135
apt-get download musl-tools:arm64
136136
sudo dpkg-deb -x musl-tools_*_arm64.deb /
137-
sed 2iREALGCC=aarch64-linux-gnu-gcc /usr/bin/musl-gcc | sudo tee /usr/bin/aarch64-linux-musl-gcc > /dev/null
137+
sed 2iREALGCC=aarch64-linux-gnu-gcc-10 /usr/bin/musl-gcc | sudo tee /usr/bin/aarch64-linux-musl-gcc > /dev/null
138138
sudo chmod +x /usr/bin/aarch64-linux-musl-gcc
139139
if: ${{ matrix.target == 'aarch64-unknown-linux-musl' }}
140140

0 commit comments

Comments
 (0)