Fixing git workflow build
Some checks are pending
Build QMK Firmware with Docker / build (draculad, draculad) (push) Waiting to run
Build QMK Firmware with Docker / build (iris, keebio/iris/rev8) (push) Waiting to run
Build QMK Firmware with Docker / build (scottogame, handwired/scottokeebs/scottogame) (push) Waiting to run
Build QMK Firmware with Docker / build (sweep, ferris/sweep) (push) Waiting to run
Build QMK Firmware with Docker / build (swoop, bluebell/swoop) (push) Waiting to run

This commit is contained in:
2025-07-15 00:27:50 -05:00
parent 4ed65f4973
commit 103a31736b

View File

@@ -4,6 +4,8 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
container:
image: ubuntu
strategy:
matrix:
keyboard: [draculad, iris, scottogame, sweep, swoop]
@@ -31,54 +33,3 @@ jobs:
run: docker tag qmk-builder registry.home.dgvigil.dev/qmk-builder:v0.1
- name: Push Docker image
run: docker push registry.home.dgvigil.dev/qmk-builder:v0.1
- name: Build firmware
run: |
docker run --rm \
-v "${{ github.workspace }}:/workspace" \
-w /workspace \
-e USER=dgvigil \
qmk-builder \
bash -c "
cd /qmk_firmware
qmk compile -kb ${{ matrix.qmk_path }} -km dgvigil
"
- name: Upload firmware artifacts
uses: actions/upload-artifact@v4
with:
name: firmware-${{ matrix.keyboard }}
path: qmk_firmware/*.hex
retention-days: 30
- name: Upload UF2 files
uses: actions/upload-artifact@v4
with:
name: firmware-${{ matrix.keyboard }}-uf2
path: qmk_firmware/*.uf2
retention-days: 30
release:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Create release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ github.sha }}"
title: "QMK Firmware Build - ${{ github.sha }}"
prerelease: false
files: |
artifacts/**/*.hex
artifacts/**/*.uf2