Skip to content

Commit

Permalink
Add GitHub Actions workflow for CI (#94)
Browse files Browse the repository at this point in the history
* Add GitHub Actions workflow for firmware build process

* Fix GitHub Actions workflow to correctly reference YAML files

* Add step to move generated files to output directory in build workflow

* Add consolidation step in build workflow and update project name in YAML

* Update artifact download name in build workflow to include project matrix

* Refactor GitHub Actions workflow to streamline firmware build and consolidation steps

* Remove unnecessary environment variable for release URL in build workflow

* Remove old build workflow and add new CI workflow for firmware builds

* Add scheduled CI trigger and update YAML file path in workflow

* Update CI workflow job names for clarity in firmware builds

* Rename project in YAML configuration from "onju-voice-microwakeword" to "onju-voice"
  • Loading branch information
klaasnicolaas authored Oct 28, 2024
1 parent 92978a9 commit d98bcb5
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: CI

on:
pull_request:
# Every Monday at 4:00 UTC
schedule:
- cron: "0 4 * * 1"

concurrency:
# yamllint disable-line rule:line-length
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
ci:
name: ${{ matrix.file }} / ${{ matrix.esphome-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 3
matrix:
file:
- onju-voice
- onju-voice-microwakeword
esphome-version:
- latest
- beta
- dev
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/[email protected]
- name: 🔨 Build firmware - ${{ matrix.esphome-version }}
uses: esphome/[email protected]
with:
yaml-file: esphome/${{ matrix.file }}.yaml
version: ${{ matrix.esphome-version }}

0 comments on commit d98bcb5

Please sign in to comment.