-
Notifications
You must be signed in to change notification settings - Fork 132
68 lines (68 loc) · 1.94 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: build-shelly-homekit
on:
push:
pull_request:
jobs:
build:
name: Build ${{ matrix.model }}
runs-on: ubuntu-latest
container:
image: shellyhomekit/mos:latest
services:
docker:
image: docker:dind
options: --privileged
ports:
- 2375:2375
strategy:
fail-fast: false
matrix:
model:
- Shelly1
- Shelly1L
- Shelly1PM
- Shelly2
- Shelly25
- ShellyColorBulb
- ShellyDuo
- ShellyI3
- ShellyPlug
- ShellyPlugS
- ShellyPlus1
- ShellyPlus1PM
- ShellyPlus2PM
- ShellyPlusI4
- ShellyPlusPlugS
- ShellyPlusRGBWPM
- ShellyPlus1Mini
- ShellyPlus1PMMini
- ShellyMini1Gen3
- ShellyMini1PMGen3
- ShellyRGBW2
- ShellyUNI
- ShellyVintage
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build docker image # remove if newer mos docker image is available
if: ${{ contains( matrix.model , 'Plus') || contains( matrix.model , 'Gen3') }}
run: docker build -t mgos/esp32-build:4.4.1-r7 -f .github/workflows/Dockerfile-esp32-build .
- name: Build
run: git config --global --add safe.directory /__w/shelly-homekit/shelly-homekit && make ${{ matrix.model }} LOCAL=1 RELEASE=1 RELEASE_SUFFIX=$(.github/version.py --suffix)
- name: Upload firmware artifacts
uses: actions/upload-artifact@v4
with:
name: release-${{ matrix.model }}
path: releases/**/shelly-homekit-${{ matrix.model }}.zip
if-no-files-found: warn
merge:
needs: build
runs-on: ubuntu-latest
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: all-releases
pattern: release-*