Skip to content

Commit 212df35

Browse files
committed
fixup! Add custom action and unified Linux build
1 parent fed1fa8 commit 212df35

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.github/workflows/OCV-PR-Linux.yaml

+3-5
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ jobs:
125125
workdir: '${{ env.HOME }}'
126126
builddir: 'build'
127127
generator: 'Ninja'
128-
enable_contrib: 'false'
129128
options: '${{ env.CMAKE_OPT }}'
130129

131130
- name: Configure and build OpenCV with contrib
@@ -134,8 +133,7 @@ jobs:
134133
workdir: '${{ env.HOME }}'
135134
builddir: 'build-contrib'
136135
generator: 'Ninja'
137-
enable_contrib: 'true'
138-
options: '${{ env.CMAKE_OPT }}'
136+
options: '-DOPENCV_EXTRA_MODULES_PATH=opencv_contrib/modules ${{ env.CMAKE_OPT }}'
139137

140138
- name: Run OpenCV tests
141139
uses: ./run-tests
@@ -149,6 +147,6 @@ jobs:
149147
builddir: 'build'
150148
suite: "linux-${{ matrix.branch }}"
151149
filter: "ubuntu-common"
152-
enable_python: "true"
153-
enable_java: "true"
150+
# enable_python: "true"
151+
# enable_java: "true"
154152
suffix: '${{ matrix.version }}_${{ matrix.branch }}'

configure-and-build/action.yml

-4
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ inputs:
1111
description: "CMake generator, e.g. Ninja"
1212
options:
1313
description: "Extra CMake options"
14-
enable_contrib:
15-
description: "Enable opencv_contrib"
16-
default: "false"
1714

1815
runs:
1916
using: "composite"
@@ -29,7 +26,6 @@ runs:
2926
-S opencv \
3027
-B ${{ inputs.builddir }} \
3128
-G ${{ inputs.generator }} \
32-
${{ fromJSON(inputs.enable_contrib) && '-DOPENCV_EXTRA_MODULES_PATH=opencv_contrib/modules' }} \
3329
${{ inputs.options }}
3430
echo "::endgroup::"
3531

0 commit comments

Comments
 (0)