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: micropython#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

Lines changed: 5 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy