summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-08-28 14:44:32 +0700
committerhathach <[email protected]>2024-08-28 14:44:32 +0700
commit0d542a0bdc3931aa82469db5d2b8c329ea5aa2e9 (patch)
treee70149fa06f0b1c31be371cdf6ab400ee8eab4f1
parent973cbd33388a5505a60ea1b70bbfd8b5c74c9c1e (diff)
enable i386 arch for running rx-gcc
-rw-r--r--.circleci/config2.yml11
1 files changed, 7 insertions, 4 deletions
diff --git a/.circleci/config2.yml b/.circleci/config2.yml
index e076baeb7..542c3d0d0 100644
--- a/.circleci/config2.yml
+++ b/.circleci/config2.yml
@@ -42,10 +42,6 @@ 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
@@ -92,6 +88,13 @@ commands:
unzip ninja-linux.zip -d ~/bin
fi
+ # rx-gcc is 32-bit binary
+ if [[ << parameters.toolchain >> == rx-gcc ]]; then
+ sudo dpkg --add-architecture i386
+ sudo apt update
+ sudo apt install libc6:i386 libstdc++6:i386 zlib1g:i386
+ fi
+
# Install Pico SDK
if [ << parameters.family >> == "rp2040" ]; then
git clone --depth 1 https://github.com/raspberrypi/pico-sdk.git ~/pico-sdk