From 27901a8497d90a545ed6b843ea3cbde86589376e Mon Sep 17 00:00:00 2001 From: Wilko Nienhaus Date: Sat, 20 Aug 2022 15:47:23 +0300 Subject: [PATCH] Update builder image to ubuntu-20.04 GitHub has deprecated the ubuntu-18.04 builder image. So before that builder image is entirely removed, this commit updates the build process to use the ubuntu-20.04 image instead. This commit also installs an older verion of GCC (v7) because binutils-esp32ulp does not build successfully on Ubuntu 20.04 with the default GCC version (v9). (This solution was found here: https://github.com/espressif/binutils-esp32ulp/issues/19#issuecomment-945091131) Fixes: #80 --- .github/workflows/run_tests.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_tests.yaml b/.github/workflows/run_tests.yaml index c8b9ecb..9d4847e 100644 --- a/.github/workflows/run_tests.yaml +++ b/.github/workflows/run_tests.yaml @@ -4,7 +4,7 @@ on: [push, pull_request] jobs: tests: - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 with: @@ -44,6 +44,10 @@ jobs: id: build_binutils run: | echo "Building binutils-esp32ulp" + # building requires an older version of gcc + sudo apt-get install -y gcc-7 g++-7 + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 7 + sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 7 git clone --depth 1 https://github.com/espressif/binutils-esp32ulp.git pushd binutils-esp32ulp git describe --always --tags