Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Multi-Arch support #14

Merged
merged 1 commit into from
Jan 8, 2023
Merged

Conversation

vidplace7
Copy link
Contributor

@vidplace7 vidplace7 commented Dec 18, 2022

Utilize docker-qemu to build/test against any platform supported by ESPHome.

Example workflow config using this action:

jobs:
  ci-multiarch:
    name: Build ${{ matrix.file }} - ${{ matrix.platform }} - ESPHome ${{ matrix.version }}
    runs-on: ubuntu-latest
    continue-on-error: ${{ matrix.accept_failure || false }}
    strategy:
      fail-fast: false
      matrix:
        file:
          - esp32-wemos-c3-mini.yaml
          - esp32-wemos-s2-mini.yaml
          - esp8266-wemos-d1-mini.yaml
        version:
          - latest
        platform:
          - linux/amd64
          - linux/arm64
          - linux/arm/v7
        include:
          - platform: linux/arm/v7
            accept_failure: true
    steps:
      - name: Checkout source code
        uses: actions/checkout@v3
      - name: Build ESPHome firmware to verify configuration
        uses: vidplace7/esphome-build-action@feature-multiarch
        with:
          yaml_file: ${{ matrix.file }}
          version: ${{ matrix.version }}
          platform: ${{ matrix.platform }}

Example run using this configuration:
https://github.com/vidplace7/esphome-wemos/actions/runs/3726832437/jobs/6320535854

Utilize docker-qemu to build/test against any platform supported by ESPHome.
@jesserockz jesserockz merged commit 63334f7 into esphome:main Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants