diff --git a/.github/workflows/build_esptool.yml b/.github/workflows/build_esptool.yml index 8beb7934c..091dc3028 100644 --- a/.github/workflows/build_esptool.yml +++ b/.github/workflows/build_esptool.yml @@ -3,12 +3,68 @@ name: Build esptool on: [push, pull_request] jobs: + build-esptool-binaries-arm: + name: Build esptool binaries for ${{ matrix.platform }} + runs-on: ubuntu-latest + strategy: + matrix: + platform: [armv7, aarch64] + env: + DISTPATH: esptool-${{ matrix.platform }} + STUBS_DIR: ./esptool/targets/stub_flasher/ + EFUSE_DIR: ./espefuse/efuse_defs/ + PIP_EXTRA_INDEX_URL: "https://dl.espressif.com/pypi" + steps: + - uses: uraimo/run-on-arch-action@v2 + name: Build and test in ${{ matrix.platform }} + with: + distro: ubuntu20.04 + shell: /bin/bash + # Not required, but speeds up builds by storing container images in + # a GitHub package registry. + githubToken: ${{ github.token }} + # Create an artifacts directory + setup: mkdir -p "${PWD}/${{ env.DISTPATH }}" + dockerRunArgs: --volume "${PWD}/${{ env.DISTPATH }}:/${{ env.DISTPATH }}" + install: | + apt-get update -y + apt-get install -y python3 python3-pip python3-setuptools libffi-dev + run: | + adduser --disabled-password --gecos "" builder + chmod -R a+rwx /home/runner/work/esptool + su builder <