From e49738f064251dc7e19c99705f1c78cdf3a6a009 Mon Sep 17 00:00:00 2001 From: David Given Date: Tue, 23 Nov 2021 20:06:58 +0100 Subject: [PATCH] Try to add the esp32 port to the build matrix. --- .github/workflows/continuous-integration.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 836fe72286..a0c659553f 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -19,7 +19,7 @@ jobs: strategy: fail-fast: false # keep on building even if one target fails matrix: - target: [dragon-nx32, esp8266, multicomp09, n8vem-mark4, rc2014-6502, rc2014-68008, rpipico, sbcv2, sc108, tiny68k, armm0-libc, z80-libc] + target: [dragon-nx32, esp32, esp8266, multicomp09, n8vem-mark4, rc2014-6502, rc2014-68008, rpipico, sbcv2, sc108, tiny68k, armm0-libc, z80-libc] runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 @@ -36,6 +36,13 @@ jobs: PKGS="lwtools gcc6809" echo "target=TARGET=${{ matrix.target }}" >> $GITHUB_ENV ;; + esp32) + PKGS="esptool" + (cd ~ && git clone --depth=1 --recursive https://github.com/espressif/esp-idf.git) + (cd ~/esp-idf && ./install esp32) + echo "setup_sh=. ~/esp-idf/export.sh" >> $GITHUB_ENV + echo "target=TARGET=${{ matrix.target }}" >> $GITHUB_ENV + ;; esp8266) PKGS="gcc-xtensa-lx106 esptool" echo "target=TARGET=${{ matrix.target }}" >> $GITHUB_ENV @@ -70,4 +77,4 @@ jobs: sudo apt-get install -y byacc automake ${PKGS} sudo update-alternatives --set yacc /usr/bin/byacc - name: make - run: make ${{ env.cross_cc }} ${{ env.target }} ${{ env.sub_target }} -j`nproc` + run: ${{ env.setup_sh } && make ${{ env.cross_cc }} ${{ env.target }} ${{ env.sub_target }} -j`nproc`