Skip to content

Commit

Permalink
ci: simplified test
Browse files Browse the repository at this point in the history
  • Loading branch information
georgik committed Jul 17, 2024
1 parent d918140 commit 077820a
Showing 1 changed file with 8 additions and 28 deletions.
36 changes: 8 additions & 28 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,38 +46,18 @@ jobs:
run: |
. /opt/esp/idf/export.sh
cmake -Daction=select_board -P Bootloader.cmake
cmake -Daction=build_all_apps -P Bootloader.cmake
#cmake -Daction=build_all_apps -P Bootloader.cmake
touch build/combined.bin
mv build/combined.bin build/graphical_bootloader_${{ matrix.board.name }}.bin
gh release upload ${{ needs.create-release.outputs.upload_url }} "build/graphical_bootloader_${{ matrix.board.name }}.bin" --clobber
- name: Merge binaries into a single image
run: |
. /opt/esp/idf/export.sh
cmake -Daction=merge_binaries -P Bootloader.cmake
#- name: Merge binaries into a single image
# run: |
# . /opt/esp/idf/export.sh
# cmake -Daction=merge_binaries -P Bootloader.cmake

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: graphical_bootloader_${{ matrix.board.name }}
path: build/combined.bin

upload-release-assets:
needs: build-and-upload
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: ./artifacts
merge-multiple: false

- name: Rename and Upload Release Assets
run: |
for file in ./artifacts/*/combined.bin; do
base_name=$(basename $(dirname "$file"))
mv "$file" "./artifacts/graphical_bootloader_${base_name}.bin"
gh release upload ${{ needs.create-release.outputs.upload_url }} "./artifacts/graphical_bootloader_${base_name}.bin" --clobber
done
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 077820a

Please sign in to comment.