From fe8bb2e2b4f74e155997530aec420bf0c1b1e64d Mon Sep 17 00:00:00 2001 From: suku Date: Mon, 8 Jan 2024 11:45:58 +0100 Subject: [PATCH] SUKU workflow name and buildd path updated --- ...irmware_release.yml => firmware_build.yml} | 14 ++--- .github/workflows/knot_firmware_nightly.yml | 62 ------------------- 2 files changed, 7 insertions(+), 69 deletions(-) rename .github/workflows/{knot_firmware_release.yml => firmware_build.yml} (90%) delete mode 100644 .github/workflows/knot_firmware_nightly.yml diff --git a/.github/workflows/knot_firmware_release.yml b/.github/workflows/firmware_build.yml similarity index 90% rename from .github/workflows/knot_firmware_release.yml rename to .github/workflows/firmware_build.yml index 003b216..5aa3631 100644 --- a/.github/workflows/knot_firmware_release.yml +++ b/.github/workflows/firmware_build.yml @@ -1,4 +1,4 @@ -name: "Release Firmware CI/CD for MIDI_Host" +name: "Combined Firmware Workflow" on: workflow_dispatch: @@ -22,17 +22,17 @@ jobs: with: esp_idf_version: latest target: esp32s3 - path: 'firmware' + path: 'Firmware' - name: Run Unit Tests run: | - cd firmware/main/host_test + cd Firmware/main/host_test ./test.sh ./test.sh >> test.txt - name: Convert to uf2 run: | - cd firmware + cd Firmware sudo python3 ./tools/uf2conv.py -f ESP32S3 ./build/midi_host_fw.bin -b 0x0 -c -o ./output/midi_host_fw.uf2 - name: Set env @@ -44,9 +44,9 @@ jobs: - name: Copy and rename the artifacts run: | ls - cp firmware/output/midi_host_fw.uf2 knot_release_${{ env.ACTION_DATE }}.uf2 - cp firmware/output/midi_host_fw.uf2 knot_nightly_${{ env.ACTION_DATE }}.uf2 - cp firmware/output/midi_host_fw.uf2 knot_nightly.uf2 + cp Firmware/output/midi_host_fw.uf2 knot_release_${{ env.ACTION_DATE }}.uf2 + cp Firmware/output/midi_host_fw.uf2 knot_nightly_${{ env.ACTION_DATE }}.uf2 + cp Firmware/output/midi_host_fw.uf2 knot_nightly.uf2 - uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/knot_firmware_nightly.yml b/.github/workflows/knot_firmware_nightly.yml deleted file mode 100644 index 1bb13f1..0000000 --- a/.github/workflows/knot_firmware_nightly.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: "Nightly Firmware CI/CD for MIDI_Host" - -on: - workflow_dispatch: - push: - paths: - - 'firmware/CMakeLists.txt' - - '.github/workflows/MIDI_Host_Firmware.yml' - - 'firmware/main/*.c' - - 'firmware/main/*.h' - - 'firmware/main/CMakeLists.txt' - - 'firmware/main/Kconfig.projbuild' - pull_request: - paths: - - 'firmware/CMakeLists.txt' - - '.github/workflows/MIDI_Host_Firmware.yml' - - 'firmware/main/*.c' - - 'firmware/main/*.h' - - 'firmware/main/CMakeLists.txt' - - 'firmware/main/Kconfig.projbuild' - -jobs: - - build: - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v2 - with: - submodules: 'recursive' - - name: esp-idf build - uses: espressif/esp-idf-ci-action@v1 - with: - esp_idf_version: latest - target: esp32s3 - path: 'firmware' - - - name: Run Unit Tests - run: | - cd firmware/main/host_test - ./test.sh - ./test.sh >> test.txt - - - uses: tsickert/discord-webhook@v4.0.0 - with: - webhook-url: ${{ secrets.WEBHOOK_URL }} - content: "Heyo, Knot Unit Tests are ready!" - filename: "firmware/main/host_test/test.txt" - - - name: Convert to uf2 - run: | - cd firmware - sudo python3 ./tools/uf2conv.py -f ESP32S3 ./build/midi_host_fw.bin -b 0x0 -c -o ./output/midi_host_fw.uf2 - - - - name: Retrieve results - if: ${{ always() }} - uses: actions/upload-artifact@v2 - with: - name: Nightly Knot Firmware - path: firmware/output/ - if-no-files-found: warn \ No newline at end of file