Skip to content

Commit

Permalink
Auto stash before rebase of "dev" onto "merge"
Browse files Browse the repository at this point in the history
  • Loading branch information
JahazielLem committed Aug 30, 2024
1 parent e6580dd commit b95217a
Showing 1 changed file with 68 additions and 20 deletions.
88 changes: 68 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ on:
pull_request:

permissions:
contents: write
contents: write

name: Build

jobs:
build:
strategy:
fail-fast: true
runs-on: ubuntu-latest
steps:
build:
strategy:
fail-fast: true
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
Expand All @@ -23,32 +25,78 @@ jobs:
- name: Add version
run: git describe --tags | sed 's/-[^-]*$//' > version.txt

- name: esp-idf build
- name: esp-idf build NO OTA
uses: espressif/esp-idf-ci-action@v1
with:
#source https://hub.docker.com/r/espressif/idf/tags
esp_idf_version: v5.4-dev
target: esp32c6
path: './firmware'

- name: Archive Firmware Files
command: "idf.py @profiles/noota build"

- name: Create NO OTA folder
run: mkdir -p ./firmware/build-noota

- name: Move NO OTA binaries
run: |
mv ./firmware/build-noota/minino.bin ./firmware/build-noota/
mv ./firmware/build-noota/bootloader/bootloader.bin ./firmware/build-noota/
mv ./firmware/build-noota/partitions/partitions.bin ./firmware/build-noota/
- name: esp-idf build OTA
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: v5.4-dev
target: esp32c6
path: './firmware'
command: "idf.py @profiles/ota build"

- name: Create OTA folder
run: mkdir -p ./firmware/build-ota

- name: Move OTA binaries
run: |
mv ./firmware/build-ota/minino.bin ./firmware/build-ota/
mv ./firmware/build-ota/bootloader/bootloader.bin ./firmware/build-ota/
mv ./firmware/build-ota/partitions/partitions.bin ./firmware/build-ota/
- name: Zip NO OTA Folder
run: zip -r ./firmware/minino-noota-firmware.zip ./firmware/build-noota/

- name: Zip OTA Folder
run: zip -r ./firmware/minino-ota-firmware.zip ./firmware/build-ota/

- name: Archive Firmware NO OTA ZIP
uses: actions/upload-artifact@v4
with:
name: minino-firmware
path: "./firmware/build/"
name: minino-noota-firmware-zip
path: "./firmware/minino-noota-firmware.zip"

- name: Archive Firmware OTA ZIP
uses: actions/upload-artifact@v4
with:
name: minino-ota-firmware-zip
path: "./firmware/minino-ota-firmware.zip"

release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download Firmware Files
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download Firmware ZIP Files
uses: actions/download-artifact@v4
with:
path: release
name: minino-noota-firmware-zip
path: ./release/

- name: Download OTA Firmware ZIP Files
uses: actions/download-artifact@v4
with:
name: minino-ota-firmware-zip
path: ./release/

- name: Release Firmware
uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
with:
artifacts: release/*/*.bin
artifacts: release/minino-noota-firmware.zip,release/minino-ota-firmware.zip
generateReleaseNotes: true
allowUpdates: true
allowUpdates: true

0 comments on commit b95217a

Please sign in to comment.