4949 uses : actions/checkout@v4
5050 with :
5151 path : app
52+
53+ - name : Process Board name
54+ id : nicename
55+ shell : bash
56+ run : |
57+ BOARD_NICENAME=${{ inputs.BOARD }}
58+ BOARD_NICENAME=${BOARD_NICENAME//\//_}
59+ echo "BOARD_NICENAME=${BOARD_NICENAME}" >> $GITHUB_OUTPUT
60+
5261 - name : Setup West workspace
5362 run : |
5463 west init -l app
@@ -60,23 +69,24 @@ jobs:
6069
6170 - name : Build with West
6271 run : |
63- west build -p -b ${{ inputs.BOARD }} app
72+ west build -p -b ${{ inputs.BOARD }} --sysbuild app
6473
6574 - name : Prepare artifacts
75+ shell : bash
6676 if : inputs.ARTIFACT == true && inputs.TAG != ''
6777
6878 run : |
69- cd build/zephyr
79+ cd build
7080 mkdir -p artifacts
71- mv merged.hex ./artifacts/golioth- ${{ github.event.repository.name }}_${{ inputs.TAG }}_${{ inputs.BOARD }}_full.hex
72- mv app_update. bin ./artifacts/golioth- ${{ github.event.repository.name }}_${{ inputs.TAG }}_${{ inputs.BOARD }}_update.bin
73- mv zephyr.elf ./artifacts/golioth- ${{ github.event.repository.name }}_${{ inputs.TAG }}_${{ inputs.BOARD }}.elf
81+ mv merged.hex ./artifacts/modbus_ ${{ inputs.TAG }}_${{ steps.nicename.outputs.BOARD_NICENAME }}_full.hex
82+ mv app/zephyr/zephyr.signed. bin ./artifacts/modbus_ ${{ inputs.TAG }}_${{ steps.nicename.outputs.BOARD_NICENAME }}_update.bin
83+ mv app/ zephyr/zephyr .elf ./artifacts/modbus_ ${{ inputs.TAG }}_${{ steps.nicename.outputs.BOARD_NICENAME }}.elf
7484
7585 # Run IDs are unique per repo but are reused on re-runs
7686 - name : Save artifact
7787 if : inputs.ARTIFACT == true
78- uses : actions/upload-artifact@v3
88+ uses : actions/upload-artifact@v4
7989 with :
80- name : build_artifacts_${{ github.run_id }}
90+ name : build_artifacts_${{ github.run_id }}_${{ steps.nicename.outputs.BOARD_NICENAME }}
8191 path : |
82- build/zephyr/ artifacts/*
92+ build/artifacts/*
0 commit comments