Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
test step

remove docker

bla

bla

bla

dockerfile
  • Loading branch information
markirb committed Dec 28, 2024
1 parent ae364d9 commit d1246cf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/Dockerfile-mos
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ubuntu:22.04

RUN apt-get update && \
apt-get install -y -q software-properties-common && add-apt-repository -y ppa:mongoose-os/mos && \
apt -q install -y mos-latest docker.io make git && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
18 changes: 9 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ on:
jobs:
build:
name: Build ${{ matrix.model }}
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container:
image: ghcr.io/markirb/mos:latest
volumes:
- /home/runner/work:/home/runner/work
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -38,15 +42,11 @@ jobs:
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)
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:
Expand Down

0 comments on commit d1246cf

Please sign in to comment.