Skip to content

Commit

Permalink
[ACTIONS] Rework workflow to allow using upload-artifact v4
Browse files Browse the repository at this point in the history
  • Loading branch information
darthcloud committed Sep 14, 2024
1 parent aae7331 commit cf63c1b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
runs-on: ubuntu-latest
container:
image: ghcr.io/darthcloud/idf-blueretro:v5.3.0_2024-02-18
outputs:
br_version: ${{ env.br_version }}

steps:
- name: Checkout repo
Expand All @@ -49,12 +51,36 @@ jobs:
mkdir ota
mv ota_data_initial.bin ota/
- name: Upload artifact
uses: darthcloud/upload-artifact@v4
uses: actions/upload-artifact@v4
with:
name: ${{ env.br_version }}_${{ matrix.hw_version }}
name: ${{ matrix.hw_version }}_${{ matrix.br_config }}
path: |
build/partition_table/partition-table.bin
build/bootloader/bootloader.bin
build/ota/ota_data_initial.bin
build/BlueRetro*.bin
if-no-files-found: error

package:
needs: build
runs-on: ubuntu-latest

steps:
- name: Merge Artifacts HW1
uses: actions/upload-artifact/merge@v4
with:
name: ${{ needs.build.outputs.br_version }}_hw1
pattern: hw1*
delete-merged: true
- name: Merge Artifacts HW2
uses: actions/upload-artifact/merge@v4
with:
name: ${{ needs.build.outputs.br_version }}_hw2
pattern: hw2*
delete-merged: true
- name: Merge Artifacts DBG
uses: actions/upload-artifact/merge@v4
with:
name: ${{ needs.build.outputs.br_version }}_dbg
pattern: dbg*
delete-merged: true
2 changes: 1 addition & 1 deletion .github/workflows/quick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
mkdir ota
mv ota_data_initial.bin ota/
- name: Upload artifact
uses: darthcloud/upload-artifact@v4
uses: actions/upload-artifact@v4
with:
name: ${{ env.br_version }}_${{ github.event.inputs.hw_version }}_${{ github.event.inputs.br_config }}
path: |
Expand Down

0 comments on commit cf63c1b

Please sign in to comment.