EV16 hardware #201
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Firmware CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build-mgmt: | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential git gcc-arm-none-eabi binutils-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib stlink-tools python3 pip | |
| pip install pyserial | |
| - name: Build | |
| working-directory: ./firmware/mgmt | |
| shell: bash | |
| run: make -j compile | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: mgmt | |
| path: | | |
| firmware/mgmt/build/mgmt.bin | |
| firmware/mgmt/build/mgmt.elf | |
| firmware/mgmt/build/mgmt.hex | |
| - name: Nightly mgmt release | |
| if: github.ref_name == 'main' | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| tag: nightly | |
| name: "Nightly Build" | |
| allowUpdates: true | |
| replacesArtifacts: true | |
| artifacts: firmware/mgmt/build/mgmt.bin | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| build-net: | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| container: | |
| image: espressif/idf:v5.4 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install Dependencies | |
| run: | | |
| apt-get update | |
| apt-get install -y make git curl unzip cmake bash pkg-config | |
| - name: Build | |
| working-directory: ./firmware/net | |
| shell: bash | |
| run: | | |
| . $IDF_PATH/export.sh | |
| make -j compile | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: net | |
| path: | | |
| firmware/net/build/bootloader/bootloader.bin | |
| firmware/net/build/partition_table/partition-table.bin | |
| firmware/net/build/net.bin | |
| firmware/net/build/net.elf | |
| - name: Upload net binary | |
| if: github.ref_name == 'main' | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| tag: nightly | |
| name: "Nightly Build" | |
| allowUpdates: true | |
| replacesArtifacts: true | |
| artifacts: | | |
| firmware/net/build/bootloader/bootloader.bin | |
| firmware/net/build/partition_table/partition-table.bin | |
| firmware/net/build/net.bin | |
| firmware/net/build/net.elf | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| build-ui: | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential git gcc-arm-none-eabi binutils-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib stlink-tools python3 pip | |
| pip install pyserial | |
| - name: Build | |
| working-directory: ./firmware/ui | |
| shell: bash | |
| run: make -j compile | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ui | |
| path: | | |
| firmware/ui/build/ui.bin | |
| firmware/ui/build/ui.elf | |
| firmware/ui/build/ui.hex | |
| - name: Upload ui binary | |
| if: github.ref_name == 'main' | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| tag: nightly | |
| name: "Nightly Build" | |
| allowUpdates: true | |
| replacesArtifacts: true | |
| artifacts: firmware/ui/build/ui.bin | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |