Skip to content

Commit

Permalink
Update Build Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Aug 13, 2024
1 parent c0bb3c7 commit a8f4c53
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 25 deletions.
32 changes: 10 additions & 22 deletions .github/workflows/build-nightly.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Nightly Stock Firmware Build
name: Nightly Firmware Build Check
on:
schedule:
- cron: "0 0 * * *"
Expand All @@ -11,35 +11,23 @@ jobs:
name: Build Firmware
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v2
with:
python-version: "3.9"

- name: Install ESPHome
run: pip install --pre --user esphome

- name: Compile Stock Firmware
working-directory: firmware
run: |
esphome compile doorman-stock.yaml
mkdir -p bin
mv .esphome/build/doorman-s3/.pioenvs/doorman-s3/firmware.factory.bin bin/stock-firmware-factory.bin
mv .esphome/build/doorman-s3/.pioenvs/doorman-s3/firmware.bin bin/stock-firmware.bin
- name: Compile Nuki Bridge Firmware
working-directory: firmware
run: |
esphome compile doorman-nuki-bridge.yaml
mkdir -p bin
mv .esphome/build/doorman-s3/.pioenvs/doorman-s3/firmware.factory.bin bin/nuki-bridge-firmware-factory.bin
mv .esphome/build/doorman-s3/.pioenvs/doorman-s3/firmware.bin bin/nuki-bridge-firmware.bin
uses: esphome/build-action@v4.0.1
with:
yaml_file: firmware/doorman-stock.yaml
version: beta

- uses: actions/upload-artifact@v4
- name: Compile Nuki Bridge Firmware
uses: esphome/build-action@v4.0.1
with:
name: firmware-bin
path: firmware/bin
yaml_file: firmware/doorman-nuki-bridge.yaml
version: beta

- name: Send Discord failure notification
if: failure()
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/esphome-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:
esphome-build-name: ${{ steps.esphome-build.outputs.name}}
project-version: ${{ steps.esphome-build.outputs.project-version }}
steps:
- uses: actions/checkout@v3.5.3
- uses: esphome/build-action@v3.2.0
- uses: actions/checkout@v4
- uses: esphome/build-action@v4.0.1
id: esphome-build
with:
yaml_file: ${{ matrix.file }}
Expand All @@ -73,7 +73,7 @@ jobs:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v3.5.3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: output
Expand Down

0 comments on commit a8f4c53

Please sign in to comment.