2022-02-16 22:51:05 +00:00
|
|
|
name: clang-format-lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [master, nightly]
|
|
|
|
types: [opened, synchronize, edited, reopened]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
2022-02-16 23:09:23 +00:00
|
|
|
name: Clang Format Lint
|
2022-02-16 22:51:05 +00:00
|
|
|
runs-on: ubuntu-latest
|
2022-02-16 23:09:23 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: false # false to test all, true to fail entire job if any fail
|
|
|
|
matrix:
|
2022-02-16 23:13:16 +00:00
|
|
|
inplace: [ true, false ] # removed ubuntu_18_04 for now
|
2022-02-16 22:51:05 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Clang format lint
|
|
|
|
uses: DoozyX/clang-format-lint-action@v0.13
|
|
|
|
with:
|
|
|
|
source: './sunshine'
|
|
|
|
extensions: 'cpp,h'
|
|
|
|
clangFormatVersion: 13
|
|
|
|
style: file
|
2022-02-16 23:09:23 +00:00
|
|
|
inplace: ${{ matrix.inplace }}
|
2022-02-16 22:58:06 +00:00
|
|
|
|
|
|
|
- name: Upload Artifacts
|
2022-02-16 23:13:16 +00:00
|
|
|
if: ${{ matrix.inplace == true }}
|
2022-02-16 22:58:06 +00:00
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2022-02-16 23:09:23 +00:00
|
|
|
name: sunshine
|
2022-02-16 22:58:06 +00:00
|
|
|
path: sunshine/
|