enable i386 arch for running rx-gcc

This commit is contained in:
hathach 2024-08-28 14:24:50 +07:00
parent 59883237f7
commit 973cbd3338
No known key found for this signature in database
GPG Key ID: 26FAB84F615C3C52

View File

@ -42,6 +42,10 @@ commands:
if [[ << parameters.toolchain >> == rx-gcc ]]; then
mv toolchain.tar.gz toolchain.run
chmod +x toolchain.run
# rx-gcc is i386 binary
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install libc6:i386 libncurses5:i386 libstdc++6:i386
./toolchain.run -p ~/cache/<< parameters.toolchain >>/gnurx -y
else
tar -C ~/cache/<< parameters.toolchain >> -xaf toolchain.tar.gz