Update build workflow

This commit is contained in:
Drashna Jael're
2022-01-21 11:25:32 -08:00
parent 0ebd0de6f6
commit 087cdc6b74

View File

@@ -6,11 +6,13 @@ on:
pull_request: pull_request:
paths-ignore: paths-ignore:
- '**.md' - '**.md'
workflow_dispatch:
jobs: jobs:
build-default: build-firmware:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: qmkfm/qmk_cli
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@@ -26,7 +28,8 @@ jobs:
- oryx - oryx
steps: steps:
- uses: actions/checkout@v2 - name: Checkout QMK Firmware
uses: actions/checkout@v2
with: with:
fetch-depth: 1 fetch-depth: 1
persist-credentials: false persist-credentials: false
@@ -35,18 +38,10 @@ jobs:
- name: Build - name: Build
id: build id: build
run: | run: |
TARGET="${{ matrix.keyboard }}" qmk compile -kb ${{ matrix.keyboard}} -km ${{ matrix.keymap }}
if [ -n "${{ matrix.keymap }}" ]; then TARGET="$(echo "${{ matrix.keyboard }}" | sed 's#/#_#g')_${{matrix.keymap}}"
TARGET="${TARGET}:${{ matrix.keymap }}" echo ::set-output name=artifact-name::${TARGET}
fi
sed -i 's/run --rm -it/run --rm/' util/docker_build.sh
util/docker_build.sh ${TARGET}
ls
echo ::set-output name=artifact-name::${TARGET//[:<>|*?\\\/]/_}
echo "Artifact-name: ${{ steps.build.outputs.artifact-name }}" echo "Artifact-name: ${{ steps.build.outputs.artifact-name }}"
- name: Archive artifacts - name: Archive artifacts