diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index df9683d..14a0f13 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -31,23 +31,11 @@ jobs: # Add the MSP430 tools repository and install the tools sudo apt-get install -y wget p7zip-full - # Download the MSP430 GCC toolchain from TI's official link - wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-LlCjWuAbzH/9.3.1.2/msp430-gcc-full-linux-x64-installer-9.3.1.2.7z + wget https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-LlCjWuAbzH/9.3.1.2/msp430-gcc-9.3.1.11_linux64.tar.bz2 + tar -xjf msp430-gcc-9.3.1.11_linux64.tar.bz2 -C /opt - # Extract the .7z installer - 7z x msp430-gcc-full-linux-x64-installer-9.3.1.2.7z -o/msp430-gcc - - # Change directory to the extracted location - cd /msp430-gcc - - # Make the .run installer executable - chmod +x msp430-gcc-full-linux-x64-installer-9.3.1.2.run - - # Run the installer in unattended mode (no user interaction) - sudo ./msp430-gcc-full-linux-x64-installer-9.3.1.2.run --mode unattended --prefix /usr/local - - # Add /usr/local/bin to the PATH to ensure msp430-gcc is accessible - echo "/usr/local/bin" >> $GITHUB_ENV + echo "export PATH=/opt/msp430-elf/bin:$PATH" >> ~/.bashrc + source ~/.bashrc # You would also install the necessary firmware building tools if they are available # or set up cross-compilation for ARM