From 7a9cbfb68ffecbda2780adb0ccecd61dfaa38599 Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Wed, 20 Dec 2023 15:55:06 +0200 Subject: [PATCH] build.yml: Download and use fixed versions of GCC --- .github/workflows/build.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 79d9afc3f1bf7..707c65d6b4fc4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -135,15 +135,16 @@ jobs: - name: Extract sources run: tar zxf sources.tar.gz - - name: Docker Login - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Docker Pull - run: docker pull ghcr.io/apache/nuttx/apache-nuttx-ci-linux + - name: Install tools + run: | + sudo apt-get install kconfig-frontends + mkdir -p tools + cd tools + wget https://static.dev.sifive.com/dev-tools/freedom-tools/v2020.12/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14.tar.gz + tar xvf riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14.tar.gz + wget https://developer.arm.com/-/media/Files/downloads/gnu/12.3.rel1/binrel/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi.tar.xz + xz -d arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi.tar.xz + tar xf arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi.tar.xz - name: Export NuttX Repo SHA run: echo "nuttx_sha=`git -C sources/nuttx rev-parse HEAD`" >> $GITHUB_ENV @@ -156,6 +157,8 @@ jobs: run: | echo "::add-matcher::sources/nuttx/.github/gcc.json" export ARTIFACTDIR=`pwd`/buildartifacts + export PATH=$PATH:$PWD/tools/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14/bin/ + export PATH=$PATH:$PWD/tools/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/bin/ git config --global --add safe.directory /github/workspace/sources/nuttx git config --global --add safe.directory /github/workspace/sources/apps cd sources/nuttx/tools/ci