Delete .github/workflows/build.yml (#1)
Build and Package Firmware / build (push) Failing after 11s
Build and Package Firmware / build (push) Failing after 11s
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
+22
-14
@@ -13,7 +13,7 @@ jobs:
|
|||||||
container: espressif/idf:v5.2.1
|
container: espressif/idf:v5.2.1
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
@@ -23,24 +23,19 @@ jobs:
|
|||||||
|
|
||||||
- name: Set Version Identifier
|
- name: Set Version Identifier
|
||||||
run: |
|
run: |
|
||||||
git rev-parse --short HEAD > version.txt
|
git rev-parse --short HEAD > version.txt && echo "Build version (commit ID): $(cat 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 -S tests -B tests/build && cmake --build tests/build && ./tests/build/test_decoder
|
||||||
cmake --build tests/build
|
|
||||||
./tests/build/test_decoder
|
|
||||||
|
|
||||||
- name: Build Firmware
|
- name: Build Firmware
|
||||||
run: |
|
run: |
|
||||||
. $IDF_PATH/export.sh
|
. $IDF_PATH/export.sh && idf.py build
|
||||||
idf.py build
|
|
||||||
|
|
||||||
- name: Create Flashing Instructions Document
|
- name: Create Flashing Instructions Document
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist
|
mkdir -p dist && cat << 'EOF' > dist/README_FLASHING.txt
|
||||||
cat << 'EOF' > dist/README_FLASHING.txt
|
|
||||||
ESP32 ALDL Bridge Firmware Flash Instructions
|
ESP32 ALDL Bridge Firmware Flash Instructions
|
||||||
=============================================
|
=============================================
|
||||||
|
|
||||||
@@ -55,16 +50,29 @@ jobs:
|
|||||||
|
|
||||||
- name: Stage Firmware Binaries
|
- name: Stage Firmware Binaries
|
||||||
run: |
|
run: |
|
||||||
cp build/esp32-aldl.bin dist/
|
cp build/esp32-aldl.bin dist/ && cp build/bootloader/bootloader.bin dist/ && cp build/partition_table/partition-table.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
|
||||||
|
with:
|
||||||
|
name: esp32-aldl-firmware-${{ github.sha }}
|
||||||
|
path: esp32-aldl-firmware.tar.gz
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
|
- name: Upload Firmware Package (Gitea)
|
||||||
|
if: ${{ github.server_url != 'https://github.com' }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
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
|
||||||
|
|
||||||
Reference in New Issue
Block a user