From ba2419af577406636c458404a08d4a1cb88f0e62 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Thu, 9 Mar 2023 15:51:50 +1100 Subject: [PATCH] Add CI builds for default and via keymaps --- .github/workflows/ci_builds.yml | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ci_builds.yml diff --git a/.github/workflows/ci_builds.yml b/.github/workflows/ci_builds.yml new file mode 100644 index 000000000000..1822b8e36a44 --- /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 }}