Skip to content

Commit 27901a8

Browse files
committed
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: espressif/binutils-esp32ulp#19 (comment)) Fixes: #80
1 parent 50e1b97 commit 27901a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/run_tests.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push, pull_request]
44

55
jobs:
66
tests:
7-
runs-on: ubuntu-18.04
7+
runs-on: ubuntu-20.04
88
steps:
99
- uses: actions/checkout@v2
1010
with:
@@ -44,6 +44,10 @@ jobs:
4444
id: build_binutils
4545
run: |
4646
echo "Building binutils-esp32ulp"
47+
# building requires an older version of gcc
48+
sudo apt-get install -y gcc-7 g++-7
49+
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 7
50+
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 7
4751
git clone --depth 1 https://github.com/espressif/binutils-esp32ulp.git
4852
pushd binutils-esp32ulp
4953
git describe --always --tags

0 commit comments

Comments
 (0)