Skip to content

Commit

Permalink
Add CI builds for default and via keymaps (#20071)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc authored Mar 9, 2023
1 parent 17bbef5 commit ceb8222
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci_builds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI Builds

permissions:
contents: read

on:
push:
branches:
- master
- develop

jobs:
ci_builds:
runs-on: self-hosted

if: github.repository == 'qmk/qmk_firmware'

strategy:
matrix:
keymap:
- default
- via

container: qmkfm/qmk_cli

steps:
- name: Disable safe.directory check
run : git config --global --add safe.directory '*'

- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install dependencies
run: pip3 install -r requirements.txt

- name: Run `qmk mass-compile` (keymap ${{ matrix.keymap }})
run: qmk mass-compile -j $(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null) -km ${{ matrix.keymap }}

0 comments on commit ceb8222

Please sign in to comment.