diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 97ad257d..43a7bccc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,17 +26,21 @@ jobs: chmod +x ./requirements.sh sudo ./requirements.sh pip install -r requirements.txt --upgrade + - name: Install libncurses5 + run: sudo apt-get install -y libncurses5 libncursesw5 - name: Install STM32 toolchain + env: + GCC_PATH: arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi + GCC_ARCHIVE_PATH: arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz + GCC_URL: https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz run: | - wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/13.2.rel1/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz - tar xf arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz - echo "${GITHUB_WORKSPACE}/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/bin" >> $GITHUB_PATH - - # Install LTO plugin - sudo apt-get update - sudo apt-get install -y gcc-arm-none-eabi-plugin-dev - + cd ${HOME} + wget -nv $GCC_URL + mkdir -p $GCC_PATH + tar -xJf $GCC_ARCHIVE_PATH + echo "${HOME}/${GCC_PATH}/bin" >> $GITHUB_PATH + - name: Force PATH to update run: hash -r @@ -53,7 +57,6 @@ jobs: clang --version clang-format --version pylint --version - - name: Format and lint run: | scons format @@ -62,7 +65,6 @@ jobs: git diff --name-only; exit 1; fi - scons lint if [ $? -ne 0 ] ; then echo -e "\n lint failed";