-
-
Notifications
You must be signed in to change notification settings - Fork 22
53 lines (49 loc) · 1.32 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
name: Build firmware
on:
# push:
# branches:
# - main
pull_request:
workflow_dispatch:
workflow_call:
inputs:
release-url:
required: true
type: string
# release:
# types: [published]
concurrency:
# yamllint disable-line rule:line-length
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
RELEASE_URL: ${{ github.server_url }}/${{ github.repository }}/releases/latest
jobs:
build:
name: Building ${{ matrix.file }}
runs-on: ubuntu-latest
strategy:
max-parallel: 3
matrix:
file:
- onju-voice
- onju-voice-microwakeword
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v4.2.2
- name: 🔨 Build firmware
uses: esphome/build-action@v4.0.3
id: esphome-build
with:
yaml-file: ${{ matrix.file }}.yaml
version: latest
release-summary: "Check the release notes for more information."
release-url: ${{ inputs.release-url || env.RELEASE_URL }}
cache: true
- name: ⬆️ Upload firmware / device artifact
uses: actions/upload-artifact@v4.4.3
with:
name: ${{ matrix.file }}
path: output
retention-days: 1