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
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:
53
.github/workflows/docker-build.yml
vendored
53
.github/workflows/docker-build.yml
vendored
@@ -4,6 +4,8 @@ on: [push, pull_request]
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ubuntu
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
keyboard: [draculad, iris, scottogame, sweep, swoop]
|
keyboard: [draculad, iris, scottogame, sweep, swoop]
|
||||||
@@ -31,54 +33,3 @@ jobs:
|
|||||||
run: docker tag qmk-builder registry.home.dgvigil.dev/qmk-builder:v0.1
|
run: docker tag qmk-builder registry.home.dgvigil.dev/qmk-builder:v0.1
|
||||||
- name: Push Docker image
|
- name: Push Docker image
|
||||||
run: docker push registry.home.dgvigil.dev/qmk-builder:v0.1
|
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
|
|
||||||
Reference in New Issue
Block a user