fix: Don't fail fast, only upload hex if no uf2.
This commit is contained in:
parent
b81f4b26b7
commit
4afe98784a
1 changed files with 8 additions and 2 deletions
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
@ -26,6 +26,7 @@ jobs:
|
||||||
needs: matrix
|
needs: matrix
|
||||||
name: Build
|
name: Build
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix: ${{fromJson(needs.matrix.outputs.matrix)}}
|
matrix: ${{fromJson(needs.matrix.outputs.matrix)}}
|
||||||
steps:
|
steps:
|
||||||
- name: Prepare variables
|
- name: Prepare variables
|
||||||
|
@ -80,8 +81,13 @@ jobs:
|
||||||
- name: Rename artifacts
|
- name: Rename artifacts
|
||||||
run: |
|
run: |
|
||||||
mkdir build/artifacts
|
mkdir build/artifacts
|
||||||
if [ -f build/zephyr/zmk.hex ]; then cp build/zephyr/zmk.hex "build/artifacts/${{ steps.variables.outputs.artifact-name }}.hex"; fi
|
if [ -f build/zephyr/zmk.uf2 ]
|
||||||
if [ -f build/zephyr/zmk.uf2 ]; then cp build/zephyr/zmk.uf2 "build/artifacts/${{ steps.variables.outputs.artifact-name }}.uf2"; fi
|
then
|
||||||
|
cp build/zephyr/zmk.uf2 "build/artifacts/${{ steps.variables.outputs.artifact-name }}.uf2"
|
||||||
|
elif [ -f build/zephyr/zmk.hex ]
|
||||||
|
then
|
||||||
|
cp build/zephyr/zmk.hex "build/artifacts/${{ steps.variables.outputs.artifact-name }}.hex"
|
||||||
|
fi
|
||||||
- name: Archive (${{ steps.variables.outputs.display-name }})
|
- name: Archive (${{ steps.variables.outputs.display-name }})
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Reference in a new issue