mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-23 20:07:59 +02:00
fix ci and add formatting (#48)
* add dependency * dont run blocking zmq example and add formatting * format files
This commit is contained in:
2
.github/workflows/common-workflow.yml
vendored
2
.github/workflows/common-workflow.yml
vendored
@ -45,7 +45,7 @@ jobs:
|
||||
pwd
|
||||
export PROJECT_ROOT_DIR="."
|
||||
ls build/examples/*_example
|
||||
find build/examples -name "*_example" | xargs -I {} -n 1 -t bash -c {}
|
||||
find build/examples -name "*_example" -not -name "zmq_example" | xargs -I {} -n 1 -t bash -c {}
|
||||
|
||||
|
||||
|
||||
|
19
.github/workflows/format.yml
vendored
Normal file
19
.github/workflows/format.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
name: test-formatting
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
test-formatting:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: check if files are formatted
|
||||
# find all examples in build/examples and run them
|
||||
run: |
|
||||
pwd
|
||||
find -name "*.cpp" -not -path "./build/*" | xargs -I {} -n 1 -P 10 clang-format {} -Werror --dry-run -style='file:.clang-format'
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user