devcontainer: use latest dind #461
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-shelly-homekit | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
name: Build ${{ matrix.model }} | |
runs-on: ubuntu-22.04 | |
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: Install mos build tool | |
run: | | |
sudo add-apt-repository -y ppa:mongoose-os/mos | |
sudo apt -q install -y mos-latest | |
- name: Build | |
run: make ${{ matrix.model }} 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-* |