Skip to content

Commit

Permalink
[BUILD] Add ota_data_initial.bin to build zip
Browse files Browse the repository at this point in the history
  • Loading branch information
darthcloud committed Nov 6, 2023
1 parent 846dcff commit b58ae2b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,18 @@ jobs:
for file in configs/hw2/*; do echo "$(git describe --always --tags --dirty) hw2 $(basename $file)" | cut -c -31 > version.txt; cat version.txt; cp configs/hw2/$(basename $file) sdkconfig; BR_HW=_hw2 BR_SYS=_$(basename $file) idf.py reconfigure build; done
env:
IDF_TOOLS_PATH : "/home/runner/work/BlueRetro/BlueRetro/BlueRetroRoot/"
- name: Copy OTA initial binary
working-directory: ./BlueRetro/build
run: |
mkdir ota
mv ota_data_initial.bin ota/
- name: Upload artifact HW2
uses: actions/upload-artifact@v3
with:
name: ${{ env.br_version }}_hw2
path: |
BlueRetro/build/partition_table/partition-table.bin
BlueRetro/build/bootloader/bootloader.bin
BlueRetro/build/ota/ota_data_initial.bin
BlueRetro/build/BlueRetro*.bin
if-no-files-found: error
6 changes: 6 additions & 0 deletions .github/workflows/newidf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,18 @@ jobs:
for file in configs/${{ github.event.inputs.hw_version || 'hw1' }}/*; do echo "$(git describe --always --tags --dirty) ${{ github.event.inputs.hw_version || 'hw1' }} $(basename $file)" | cut -c -31 > version.txt; cat version.txt; cp configs/${{ github.event.inputs.hw_version || 'hw1' }}/$(basename $file) sdkconfig; BR_HW=_${{ github.event.inputs.hw_version || 'hw1' }} BR_SYS=_$(basename $file) idf.py reconfigure build; done
env:
IDF_TOOLS_PATH : "/home/runner/work/BlueRetro/BlueRetro/BlueRetroRoot/"
- name: Copy OTA initial binary
working-directory: ./BlueRetro/build
run: |
mkdir ota
mv ota_data_initial.bin ota/
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.br_version }}_${{ github.event.inputs.hw_version || 'hw1' }}_newidf
path: |
BlueRetro/build/partition_table/partition-table.bin
BlueRetro/build/bootloader/bootloader.bin
BlueRetro/build/ota/ota_data_initial.bin
BlueRetro/build/BlueRetro*.bin
if-no-files-found: error
6 changes: 6 additions & 0 deletions .github/workflows/quick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,18 @@ jobs:
BR_HW=_${{ github.event.inputs.hw_version }} BR_SYS=_${{ github.event.inputs.br_config }} idf.py build
env:
IDF_TOOLS_PATH : "/home/runner/work/BlueRetro/BlueRetro/BlueRetroRoot/"
- name: Copy OTA initial binary
working-directory: ./BlueRetro/build
run: |
mkdir ota
mv ota_data_initial.bin ota/
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.br_version }}_${{ github.event.inputs.hw_version }}_${{ github.event.inputs.br_config }}
path: |
BlueRetro/build/partition_table/partition-table.bin
BlueRetro/build/bootloader/bootloader.bin
BlueRetro/build/ota/ota_data_initial.bin
BlueRetro/build/BlueRetro*.bin
if-no-files-found: error

0 comments on commit b58ae2b

Please sign in to comment.