Skip to content

Commit

Permalink
Add esp32s3
Browse files Browse the repository at this point in the history
  • Loading branch information
spuder committed Nov 23, 2024
1 parent 4717bfe commit 1ee1545
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/esphome.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
target: [esp32s2]
target: [esp32s2, esp32s3]
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -78,14 +78,14 @@ jobs:
complete-manifest: false
if: matrix.target == 'esp32s2'

# - name: Build OpenSpool-AMS firmware
# uses: esphome/[email protected]
# with:
# yaml-file: ${{ github.workspace }}/firmware/config-ams.yaml
# release-summary: ${{ env.RELEASE_SUMMARY }}
# release-url: https://openspool.io/firmware
# complete-manifest: false
# if: matrix.target == 'esp32s3'
- name: Build OpenSpool-AMS firmware
uses: esphome/[email protected]
with:
yaml-file: ${{ github.workspace }}/firmware/config-ams.yaml
release-summary: ${{ env.RELEASE_SUMMARY }}
release-url: https://openspool.io/firmware
complete-manifest: false
if: matrix.target == 'esp32s3'

- name: ls
run: |
Expand Down Expand Up @@ -140,6 +140,8 @@ jobs:
rm -f docs/firmware/*.bin || true
cp downloaded-artifacts/openspool-esp32s2/*.bin docs/firmware/
cp downloaded-artifacts/openspool-esp32s2/*.md5 docs/firmware/
cp downloaded-artifacts/openspool-esp32s3/*.bin docs/firmware/
cp downloaded-artifacts/openspool-esp32s3/*.md5 docs/firmware/
- name: Combined manifests
run: |
Expand All @@ -150,7 +152,7 @@ jobs:
new_install_prompt_erase: true
}' > docs/firmware/manifest.json
for target in esp32s2; do
for target in esp32s2 esp32s3; do
if [ -f "downloaded-artifacts/openspool-$target/manifest.json" ]; then
jq --slurpfile new_build "downloaded-artifacts/openspool-$target/manifest.json" '.builds += $new_build' docs/firmware/manifest.json > temp.json && mv temp.json docs/firmware/manifest.json
else
Expand Down

0 comments on commit 1ee1545

Please sign in to comment.