2023-03-09 23:36:20 +01:00
|
|
|
name: CI Builds
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
ci_builds:
|
2023-03-12 02:18:49 +01:00
|
|
|
name: "CI Build: {{ matrix.keymap }}"
|
2023-03-09 23:36:20 +01:00
|
|
|
runs-on: self-hosted
|
2023-03-12 02:18:49 +01:00
|
|
|
timeout-minutes: 1380
|
2023-03-09 23:36:20 +01:00
|
|
|
|
|
|
|
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 }}
|