mirror of
https://github.com/LizardByte/Sunshine.git
synced 2024-11-18 11:10:04 +00:00
8d4bd87ad2
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
36 lines
850 B
YAML
36 lines
850 B
YAML
name: clang-format-lint
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [master, nightly]
|
|
types: [opened, synchronize, edited, reopened]
|
|
|
|
jobs:
|
|
lint:
|
|
name: Clang Format Lint
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false # false to test all, true to fail entire job if any fail
|
|
matrix:
|
|
inplace: [ true, false ] # removed ubuntu_18_04 for now
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Clang format lint
|
|
uses: DoozyX/clang-format-lint-action@v0.13
|
|
with:
|
|
source: './sunshine'
|
|
extensions: 'cpp,h,m,mm'
|
|
clangFormatVersion: 13
|
|
style: file
|
|
inplace: ${{ matrix.inplace }}
|
|
|
|
- name: Upload Artifacts
|
|
if: ${{ matrix.inplace == true }}
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: sunshine
|
|
path: sunshine/
|