Merge 2d21a981cf
into 391f80f069
This commit is contained in:
commit
60ed8d9385
1 changed files with 10 additions and 6 deletions
16
.github/workflows/build-user-config.yml
vendored
16
.github/workflows/build-user-config.yml
vendored
|
@ -55,6 +55,13 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix: ${{fromJson(needs.matrix.outputs.matrix)}}
|
matrix: ${{fromJson(needs.matrix.outputs.matrix)}}
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set short SHA for unique firmware file names
|
||||||
|
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
||||||
|
id: sha_short
|
||||||
|
|
||||||
- name: Prepare variables
|
- name: Prepare variables
|
||||||
id: variables
|
id: variables
|
||||||
run: |
|
run: |
|
||||||
|
@ -62,21 +69,18 @@ jobs:
|
||||||
if [ -n "${{ matrix.shield }}" ]
|
if [ -n "${{ matrix.shield }}" ]
|
||||||
then
|
then
|
||||||
EXTRA_CMAKE_ARGS="-DSHIELD=${{ matrix.shield }}"
|
EXTRA_CMAKE_ARGS="-DSHIELD=${{ matrix.shield }}"
|
||||||
ARTIFACT_NAME="${{ matrix.shield }}-${{ matrix.board }}-zmk"
|
ARTIFACT_NAME="${{ matrix.shield }}-${{ matrix.board }}-zmk-${{ steps.sha_short.outputs.sha_short }}"
|
||||||
DISPLAY_NAME="${{ matrix.shield }} - ${{ matrix.board }}"
|
DISPLAY_NAME="${{ matrix.shield }} - ${{ matrix.board }}"
|
||||||
else
|
else
|
||||||
EXTRA_CMAKE_ARGS=
|
EXTRA_CMAKE_ARGS=
|
||||||
DISPLAY_NAME="${{ matrix.board }}"
|
DISPLAY_NAME="${{ matrix.board }}"
|
||||||
ARTIFACT_NAME="${{ matrix.board }}-zmk"
|
ARTIFACT_NAME="${{ matrix.board }}-zmk-${{ steps.sha_short.outputs.sha_short }}"
|
||||||
fi
|
fi
|
||||||
echo ::set-output name=extra-cmake-args::${EXTRA_CMAKE_ARGS}
|
echo ::set-output name=extra-cmake-args::${EXTRA_CMAKE_ARGS}
|
||||||
echo ::set-output name=artifact-name::${ARTIFACT_NAME}
|
echo ::set-output name=artifact-name::${ARTIFACT_NAME}
|
||||||
echo ::set-output name=display-name::${DISPLAY_NAME}
|
echo ::set-output name=display-name::${DISPLAY_NAME}
|
||||||
echo ::set-output name=zephyr-version::${ZEPHYR_VERSION}
|
echo ::set-output name=zephyr-version::${ZEPHYR_VERSION}
|
||||||
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Cache west modules
|
- name: Cache west modules
|
||||||
uses: actions/cache@v3.0.2
|
uses: actions/cache@v3.0.2
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
@ -127,5 +131,5 @@ jobs:
|
||||||
- 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:
|
||||||
name: ${{ inputs.artifact_name }}
|
name: ${{ inputs.artifact_name }}-${{ steps.short-sha.outputs.sha_short }}
|
||||||
path: build/artifacts
|
path: build/artifacts
|
||||||
|
|
Loading…
Add table
Reference in a new issue