Skip to content

Commit

Permalink
Workflow LTO support
Browse files Browse the repository at this point in the history
  • Loading branch information
Akashem06 committed Nov 3, 2024
1 parent fccc1cc commit 2cb5727
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -53,7 +57,6 @@ jobs:
clang --version
clang-format --version
pylint --version
- name: Format and lint
run: |
scons format
Expand All @@ -62,7 +65,6 @@ jobs:
git diff --name-only;
exit 1;
fi
scons lint
if [ $? -ne 0 ] ; then
echo -e "\n lint failed";
Expand Down

0 comments on commit 2cb5727

Please sign in to comment.