Skip to content

Commit

Permalink
Try to add the esp32 port to the build matrix.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgiven committed Nov 23, 2021
1 parent fd79863 commit e49738f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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`

0 comments on commit e49738f

Please sign in to comment.