diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 8 | ||||
-rw-r--r-- | .github/workflows/clang-format-lint.yml | 29 | ||||
-rw-r--r-- | .github/workflows/test.yml | 10 |
3 files changed, 45 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c8a711c..60c337d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,13 @@ jobs: - kyria_right - lily58_left - lily58_right + - iris_left + - iris_right - romac + - romac_plus + - settings_reset + - quefrency_left + - quefrency_right include: - board: proton_c shield: clueboard_california @@ -69,7 +75,7 @@ jobs: args: 'build "-s app -b ${{ matrix.board }} -- -DSHIELD=${{ matrix.shield }}"' - name: Archive Build uses: actions/upload-artifact@v2 - if: ${{ matrix.board == 'nice_nano' }} + if: ${{ matrix.board != 'proton_c' }} with: name: "${{ matrix.board }}-${{ matrix.shield }}-zmk-uf2" path: build/zephyr/zmk.uf2 diff --git a/.github/workflows/clang-format-lint.yml b/.github/workflows/clang-format-lint.yml new file mode 100644 index 0000000..70ae986 --- /dev/null +++ b/.github/workflows/clang-format-lint.yml @@ -0,0 +1,29 @@ +name: clang-format-lint + +on: + push: + paths: + - "app/boards/**/*.c" + - "app/include/**/*.h" + - "app/src/**" + - "app/drivers/**/*.c" + - "app/drivers/**/*.h" + pull_request: + paths: + - "app/boards/**/*.c" + - "app/include/**/*.h" + - "app/src/**" + - "app/drivers/**/*.c" + - "app/drivers/**/*.h" + +jobs: + build: + runs-on: ubuntu-latest + name: clang-format lint + + steps: + - uses: actions/checkout@v2 + - uses: DoozyX/clang-format-lint-action@v0.9 + with: + source: "./app" + extensions: "h,c" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3d2c76b..a6af058 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,12 @@ -on: [push, pull_request] +on: + push: + paths: + - "app/tests/**" + - "app/src/**" + pull_request: + paths: + - "app/tests/**" + - "app/src/**" name: Test |