mirror of
https://github.com/LizardByte/Sunshine.git
synced 2024-11-18 02:09:49 +00:00
Update clang.yml
- Use job strategy matrix - inplace True allows artifacts to be uploaded; however workflow succeeds even if there are errors - inplace False fails workflow if there are errors
This commit is contained in:
parent
5163ec93b4
commit
320b691086
10
.github/workflows/clang.yml
vendored
10
.github/workflows/clang.yml
vendored
@ -7,7 +7,12 @@ on:
|
||||
|
||||
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
|
||||
@ -20,10 +25,11 @@ jobs:
|
||||
extensions: 'cpp,h'
|
||||
clangFormatVersion: 13
|
||||
style: file
|
||||
inplace: True
|
||||
inplace: ${{ matrix.inplace }}
|
||||
|
||||
- name: Upload Artifacts
|
||||
if: ${{ matrix.inplace == True }}
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: clang-formatted-files
|
||||
name: sunshine
|
||||
path: sunshine/
|
||||
|
Loading…
Reference in New Issue
Block a user