Replace .github/workflows/build.yml #2

Merged
gronod merged 2 commits from esp-idf-workflow into esp-idf 2026-06-14 09:07:48 +01:00
+7 -26
View File
@@ -18,20 +18,16 @@ jobs:
submodules: recursive submodules: recursive
- name: Configure Safe Directory - name: Configure Safe Directory
run: | run: git config --global --add safe.directory "*"
git config --global --add safe.directory "*"
- name: Set Version Identifier - name: Set Version Identifier
run: | run: git rev-parse --short HEAD > version.txt && echo "Build version (commit ID): $(cat version.txt)"
git rev-parse --short HEAD > version.txt && echo "Build version (commit ID): $(cat version.txt)"
- name: Build and Run Host Unit Tests - name: Build and Run Host Unit Tests
run: | run: cmake -S tests -B tests/build && cmake --build tests/build && ./tests/build/test_decoder
cmake -S tests -B tests/build && cmake --build tests/build && ./tests/build/test_decoder
- name: Build Firmware - name: Build Firmware
run: | run: . $IDF_PATH/export.sh && idf.py build
. $IDF_PATH/export.sh && idf.py build
- name: Create Flashing Instructions Document - name: Create Flashing Instructions Document
run: | run: |
@@ -49,30 +45,15 @@ jobs:
EOF EOF
- name: Stage Firmware Binaries - name: Stage Firmware Binaries
run: | run: cp build/esp32-aldl.bin dist/ && cp build/bootloader/bootloader.bin dist/ && cp build/partition_table/partition-table.bin dist/
cp build/esp32-aldl.bin dist/ && cp build/bootloader/bootloader.bin dist/ && cp build/partition_table/partition-table.bin dist/
- name: Package Release - name: Package Release
run: | run: tar -czvf esp32-aldl-firmware.tar.gz -C dist .
tar -czvf esp32-aldl-firmware.tar.gz -C dist .
# --------------------------------------------------------------- - name: Upload Firmware Package
# Conditional Artifact Uploads for Cross-Platform Compatibility
# ---------------------------------------------------------------
- name: Upload Firmware Package (GitHub)
if: ${{ github.server_url == 'https://github.com' }}
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: esp32-aldl-firmware-${{ github.sha }} name: esp32-aldl-firmware-${{ github.sha }}
path: esp32-aldl-firmware.tar.gz path: esp32-aldl-firmware.tar.gz
if-no-files-found: error if-no-files-found: error
- name: Upload Firmware Package (Gitea)
if: ${{ github.server_url != 'https://github.com' }}
uses: actions/upload-artifact@v3
with:
name: esp32-aldl-firmware-${{ github.sha }}
path: esp32-aldl-firmware.tar.gz
if-no-files-found: error