-
Notifications
You must be signed in to change notification settings - Fork 132
68 lines (68 loc) · 1.85 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: ghcr.io/markirb/mos:latest
volumes:
- /home/runner/work:/home/runner/work
strategy:
fail-fast: false
matrix:
model:
# - Shelly1
# - Shelly1L
# - Shelly1PM
# - Shelly2
- Shelly2PMGen3
- Shelly1PMGen3
- Shelly1Gen3
- ShellyI4Gen3
# - 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
run: |
cd /home/runner/work/shelly-homekit/shelly-homekit
git config --global --add safe.directory /home/runner/work/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-*