Skip to content

Commit e15241c

Browse files
committed
Initital commit
1 parent 1a5ca6e commit e15241c

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/build.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
pull_request:
9+
schedule:
10+
- cron: "0 5 * * 1"
11+
12+
permissions:
13+
contents: read
14+
15+
concurrency:
16+
# yamllint disable-line rule:line-length
17+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
18+
cancel-in-progress: true
19+
20+
env:
21+
TEST_RELEASE_SUMMARY: |-
22+
Test "release" summary
23+
* Multiple lines
24+
25+
jobs:
26+
build:
27+
name: Build test configuration for esphome:${{ matrix.esphome-version }} with ${{ matrix.manifest }} manifest
28+
runs-on: ubuntu-latest
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
esphome-version:
33+
- stable
34+
- beta
35+
- dev
36+
manifest:
37+
- complete
38+
- partial
39+
steps:
40+
- name: Checkout
41+
uses: actions/[email protected]
42+
- name: Run action
43+
uses: ./
44+
id: esphome-build
45+
with:
46+
yaml-file: tests/test.yaml
47+
version: ${{ matrix.esphome-version }}
48+
platform: linux/amd64
49+
cache: true
50+
release-summary: ${{ env.TEST_RELEASE_SUMMARY }}
51+
release-url: "https://github.com/esphome/build-action"
52+
complete-manifest: ${{ matrix.manifest == 'complete' }}
53+
- name: Write version to file
54+
run: echo ${{ steps.esphome-build.outputs.version }} > ${{ steps.esphome-build.outputs.name }}/version
55+
- name: Upload ESPHome binary
56+
uses: actions/[email protected]
57+
with:
58+
name: build-output-files-${{ matrix.esphome-version }}-${{ matrix.manifest }}
59+
path: ${{ steps.esphome-build.outputs.name }}

0 commit comments

Comments
 (0)