|
|
@ -86,13 +86,28 @@ jobs: |
|
|
|
id: west-zephyr-export |
|
|
|
id: west-zephyr-export |
|
|
|
with: |
|
|
|
with: |
|
|
|
args: "zephyr-export" |
|
|
|
args: "zephyr-export" |
|
|
|
|
|
|
|
- name: Prepare variables |
|
|
|
|
|
|
|
id: variables |
|
|
|
|
|
|
|
run: | |
|
|
|
|
|
|
|
SHIELD_ARG= |
|
|
|
|
|
|
|
ARTIFACT_NAME="${{ matrix.board }}" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -n "${{ matrix.shield }}" ]; then |
|
|
|
|
|
|
|
SHIELD_ARG="-DSHIELD=${{ matrix.shield }}" |
|
|
|
|
|
|
|
ARTIFACT_NAME="${ARTIFACT_NAME}-${{ matrix.shield }}" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ARTIFACT_NAME="${ARTIFACT_NAME}-zmk" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo ::set-output name=shield-arg::${SHIELD_ARG} |
|
|
|
|
|
|
|
echo ::set-output name=artifact-name::${ARTIFACT_NAME} |
|
|
|
- name: West build |
|
|
|
- name: West build |
|
|
|
uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" |
|
|
|
uses: "docker://zmkfirmware/zephyr-west-action-arm:latest" |
|
|
|
id: west-build |
|
|
|
id: west-build |
|
|
|
with: |
|
|
|
with: |
|
|
|
args: 'build "-s app -b ${{ matrix.board }} -- -DSHIELD=${{ matrix.shield }}"' |
|
|
|
args: 'build "-s app -b ${{ matrix.board }} -- ${{ steps.variables.outputs.shield-arg }}' |
|
|
|
- name: Archive build |
|
|
|
- name: Archive build |
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
uses: actions/upload-artifact@v2 |
|
|
|
with: |
|
|
|
with: |
|
|
|
name: "${{ matrix.board }}-${{ matrix.shield }}-zmk-uf2" |
|
|
|
name: "${{ steps.variables.outputs.artifact-name }}-uf2" |
|
|
|
path: build/zephyr/zmk.uf2 |
|
|
|
path: build/zephyr/zmk.uf2 |
|
|
|