Skip to content

Commit

Permalink
workflows: upgrade artifact version to v4 (#420)
Browse files Browse the repository at this point in the history
fix #421
  • Loading branch information
RuffaloLavoisier authored Dec 11, 2024
2 parents 752ef0a + db0ecc2 commit 2cc0a02
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-EMULATOR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ jobs:
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-results
name: test-results-${{ matrix.build-configuration }}
path: |
build/Testing
4 changes: 2 additions & 2 deletions .github/workflows/test-OS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Compile language ${{ matrix.language }} model ${{ matrix.model }}
run: python3 .github/buildFirmware.py -l "${{ matrix.language }}" -m "${{ matrix.model }}" -b debug
- name: Upload ${{ matrix.os }} firmware artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: firmwares-${{ matrix.os }}
name: firmwares-${{ matrix.os }}-${{ matrix.language }}-${{ matrix.model }}
path: "*.bin"
10 changes: 5 additions & 5 deletions .github/workflows/test-OSW.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ jobs:
- name: Compile language ${{ matrix.language }} model ${{ matrix.model }}
run: python3 .github/buildFirmware.py -l "${{ matrix.language }}" -m "${{ matrix.model }}" -b "${{ matrix.build-configuration }}"
- name: Upload firmware artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: firmwares
name: firmwares-${{ matrix.language }}-${{ matrix.model }}-${{ matrix.build-configuration }}
path: "*.bin"

# do this last step seperately to avoid race conditions with firmware upload
Expand All @@ -96,14 +96,14 @@ jobs:
needs: build-OSW
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
pattern: "*.bin"
pattern: firmwares*
merge-multiple: true
- name: Create release and upload firmware to it
uses: softprops/action-gh-release@v2
with:
files: "firmwares/*.bin"
files: "*.bin"
draft: true
prerelease: true
generate_release_notes: true

0 comments on commit 2cc0a02

Please sign in to comment.