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:
@@ -7,7 +7,12 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
name: Clang Format Lint
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -20,10 +25,11 @@ jobs:
|
|||||||
extensions: 'cpp,h'
|
extensions: 'cpp,h'
|
||||||
clangFormatVersion: 13
|
clangFormatVersion: 13
|
||||||
style: file
|
style: file
|
||||||
inplace: True
|
inplace: ${{ matrix.inplace }}
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
|
if: ${{ matrix.inplace == True }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: clang-formatted-files
|
name: sunshine
|
||||||
path: sunshine/
|
path: sunshine/
|
||||||
|
|||||||
Reference in New Issue
Block a user