summaryrefslogtreecommitdiff
path: root/.github/workflows/ci_builds.yml
blob: 64c7678d5313c7f2bae64d36a60d427795049392 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CI Builds

permissions:
  contents: read

on:
  push:
    branches:
    - master
    - develop

jobs:
  ci_builds:
    name: "CI Build"
    runs-on: self-hosted
    timeout-minutes: 1380

    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 }}