File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Build and Lint
33on : [pull_request, workflow_dispatch]
44
55jobs :
6- build :
6+ build-lint :
77 runs-on : ubuntu-latest
88
99 steps :
@@ -21,18 +21,21 @@ jobs:
2121 curl -L https://github.com/EmixamPP/opencv-tiny/raw/main/opencv-4.7.0.tar.xz | tar -xJ
2222 sed -i "3s@prefix=@&${PWD}/@" opencv-4.7.0/lib64/pkgconfig/opencv4.pc
2323
24- - name : Run meson
25- id : meson
24+ - name : Setup build
25+ id : setup
26+ run : |
27+ meson setup build --pkg-config-path opencv-4.7.0/lib64/pkgconfig
28+
29+ - name : Compile
2630 run : |
27- meson setup build --pkg-config-path opencv-4.7.0/lib64/pkgconfig
2831 meson compile -C build
2932
30- - name : Run clang-tidy
31- if : steps.meson .outcome == 'success'
33+ - name : Lint C++
34+ if : steps.setup .outcome == 'success'
3235 run : |
3336 ninja clang-tidy -C build
3437
35- - name : Run pyright
36- if : steps.meson.outcome == 'success'
38+ - name : Lint Python
39+ if : ${{ always() }}
3740 run : |
3841 pyright $(git ls-files '*.py')
You can’t perform that action at this time.
0 commit comments