summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorDrashna Jael're <drashna@live.com>2022-01-21 11:25:32 -0800
committerDrashna Jael're <drashna@live.com>2022-01-21 11:25:32 -0800
commit087cdc6b74daa74948107cca192c403e83b318e0 (patch)
tree348aa41157f3128b8ab134698d8dcc956bf2a1bc /.github/workflows
parent0ebd0de6f62c50e74a72ad5260fe1b8b5f2d3758 (diff)
Update build workflow
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml21
1 files changed, 8 insertions, 13 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 78f1ed423b..af9ce081a3 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -6,11 +6,13 @@ on:
pull_request:
paths-ignore:
- '**.md'
+ workflow_dispatch:
jobs:
- build-default:
+ build-firmware:
runs-on: ubuntu-latest
+ container: qmkfm/qmk_cli
strategy:
fail-fast: false
matrix:
@@ -26,7 +28,8 @@ jobs:
- oryx
steps:
- - uses: actions/checkout@v2
+ - name: Checkout QMK Firmware
+ uses: actions/checkout@v2
with:
fetch-depth: 1
persist-credentials: false
@@ -35,18 +38,10 @@ jobs:
- name: Build
id: build
run: |
- TARGET="${{ matrix.keyboard }}"
+ qmk compile -kb ${{ matrix.keyboard}} -km ${{ matrix.keymap }}
- if [ -n "${{ matrix.keymap }}" ]; then
- TARGET="${TARGET}:${{ matrix.keymap }}"
- 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//[:<>|*?\\\/]/_}
+ TARGET="$(echo "${{ matrix.keyboard }}" | sed 's#/#_#g')_${{matrix.keymap}}"
+ echo ::set-output name=artifact-name::${TARGET}
echo "Artifact-name: ${{ steps.build.outputs.artifact-name }}"
- name: Archive artifacts