summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2023-03-10 09:36:20 +1100
committerGitHub <noreply@github.com>2023-03-10 09:36:20 +1100
commitceb8222e57d3ffff8506b5318cb6773d6cbd1119 (patch)
treebc89d86a70f64fb814c33ceb0c396f611dc32d06
parent17bbef5200792d22df2bcc66e2f59a800252a1d3 (diff)
Add CI builds for default and via keymaps (#20071)
-rw-r--r--.github/workflows/ci_builds.yml38
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/ci_builds.yml b/.github/workflows/ci_builds.yml
new file mode 100644
index 0000000000..1822b8e36a
--- /dev/null
+++ b/.github/workflows/ci_builds.yml
@@ -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 }}