-
Notifications
You must be signed in to change notification settings - Fork 2
Build runner test #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 4.x
Are you sure you want to change the base?
Changes from all commits
7f84123
455cb4e
03174ef
0ede001
db9241e
1532895
7389453
aefca47
e9313aa
38fb974
53c3667
2d541d7
aa27672
2ebab9d
f280028
ce14b4f
720990f
c9051b3
ad2bf1e
837edb9
d4bd1b3
64a04c0
f0f735c
3a345d5
4e2895b
3c9f7ea
f4886f3
d52e9a8
9fcd892
f7c339e
f1b13e5
0b203c3
338b0e9
0da4fb2
416eab5
d1f24cf
e7ce7b9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,17 @@ | ||
| name: 4.x | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '0 3 * * *' | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: "0 3 * * *" | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| CodeQL: | ||
| uses: opencv/ci-gha-workflow/.github/workflows/OCV-CodeQL.yaml@main | ||
| with: | ||
| target_branch: '4.x' | ||
| workflow_branch: main | ||
|
|
||
| CodeQL: | ||
| permissions: | ||
| actions: read | ||
| security-events: write | ||
| contents: read | ||
| uses: opencv/ci-gha-workflow/.github/workflows/OCV-CodeQL.yaml@main | ||
| with: | ||
| target_branch: "4.x" | ||
| workflow_branch: main |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,55 +1,124 @@ | ||
| name: PR:4.x | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - 4.x | ||
| pull_request: | ||
| branches: | ||
| - 4.x | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
|
|
||
| Linux: | ||
| uses: opencv/ci-gha-workflow/.github/workflows/OCV-PR-Linux.yaml@main | ||
| with: | ||
| workflow_branch: main | ||
|
|
||
| Windows: | ||
| uses: opencv/ci-gha-workflow/.github/workflows/OCV-PR-Windows.yaml@main | ||
| with: | ||
| workflow_branch: main | ||
|
|
||
| Ubuntu2404-ARM64: | ||
| uses: opencv/ci-gha-workflow/.github/workflows/OCV-PR-4.x-ARM64.yaml@main | ||
|
|
||
| Ubuntu2404-ARM64-Debug: | ||
| uses: opencv/ci-gha-workflow/.github/workflows/OCV-PR-4.x-ARM64-Debug.yaml@main | ||
|
|
||
| Ubuntu2004-x64-OpenVINO: | ||
| uses: opencv/ci-gha-workflow/.github/workflows/OCV-PR-4.x-U20-OpenVINO.yaml@main | ||
|
|
||
| Ubuntu2004-x64-CUDA: | ||
| if: "${{ contains(github.event.pull_request.labels.*.name, 'category: dnn') }} || ${{ contains(github.event.pull_request.labels.*.name, 'category: dnn (onnx)') }}" | ||
| uses: opencv/ci-gha-workflow/.github/workflows/OCV-PR-4.x-U20-Cuda.yaml@main | ||
|
|
||
| macOS-ARM64: | ||
| uses: opencv/ci-gha-workflow/.github/workflows/OCV-PR-4.x-macOS-ARM64.yaml@main | ||
| concurrency: | ||
| group: OCV-PR-Linux-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| macOS-x64: | ||
| uses: opencv/ci-gha-workflow/.github/workflows/OCV-PR-4.x-macOS-x86_64.yaml@main | ||
|
|
||
| macOS-ARM64-Vulkan: | ||
| uses: opencv/ci-gha-workflow/.github/workflows/OCV-PR-4.x-macOS-ARM64-Vulkan.yaml@main | ||
|
|
||
| iOS: | ||
| uses: opencv/ci-gha-workflow/.github/workflows/OCV-PR-4.x-iOS.yaml@main | ||
|
|
||
| Android-SDK: | ||
| uses: opencv/ci-gha-workflow/.github/workflows/OCV-4.x-Android-SDK.yaml@main | ||
|
|
||
| TIM-VX: | ||
| uses: opencv/ci-gha-workflow/.github/workflows/OCV-timvx-backend-tests-4.x.yml@main | ||
|
|
||
| docs: | ||
| uses: opencv/ci-gha-workflow/.github/workflows/OCV-PR-4.x-docs.yaml@main | ||
|
|
||
| Linux-RISC-V-Clang: | ||
| uses: opencv/ci-gha-workflow/.github/workflows/OCV-PR-4.x-RISCV.yaml@main | ||
| jobs: | ||
| Ubuntu: | ||
| runs-on: incredibuild-runner | ||
| permissions: | ||
| contents: read | ||
| defaults: | ||
| run: | ||
| shell: bash | ||
| container: | ||
| image: "quay.io/opencv-ci/opencv-ubuntu-24.04:20251127" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Suggestion — Pin container image by digest, not tag: The tag |
||
|
|
||
| env: | ||
| CCACHE_MAXSIZE: "8G" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟠 Warning — Dead |
||
| CMAKE_OPT: >- | ||
| -DBUILD_DOCS=ON | ||
| -DBUILD_EXAMPLES=ON | ||
| -DOPENCV_ENABLE_NONFREE=ON | ||
| -DWITH_IMGCODEC_GIF=ON | ||
| MAIN_BUILD_DIR: "${{ (github.event.repository.name != 'opencv_contrib') && 'build' || 'build-contrib' }}" | ||
| OPENCV_FOR_THREADS_NUM: 4 | ||
| CMAKE_BUILD_PARALLEL_LEVEL: 4 | ||
|
|
||
| steps: | ||
| - name: Checkout workflow repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: opencv/ci-gha-workflow | ||
| ref: main | ||
|
|
||
| - name: Checkout and merge OpenCV | ||
| uses: ./checkout-and-merge | ||
| with: | ||
| target_branch: "4.x" | ||
| author: "${{ github.event.pull_request.user.login }}" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Critical — Null context on |
||
| source_branch: "${{ github.head_ref }}" | ||
| home: "${{ github.workspace }}" | ||
| workdir: "${{ github.workspace }}" | ||
|
|
||
| - name: Create cache directories | ||
| run: | | ||
| mkdir -p "$GITHUB_WORKSPACE/.ccache" | ||
| mkdir -p "$GITHUB_WORKSPACE/binaries_cache" | ||
|
|
||
| - if: ${{ github.event.repository.name != 'opencv_contrib' }} | ||
| name: Configure OpenCV | ||
| run: | | ||
| echo "::group::Configure" | ||
| cd "$GITHUB_WORKSPACE" | ||
| rm -rf build | ||
| mkdir -p build | ||
| cmake \ | ||
| -S opencv \ | ||
| -B build \ | ||
| -G Ninja \ | ||
| ${{ env.CMAKE_OPT }} | ||
| echo "::endgroup::" | ||
|
|
||
| - if: ${{ github.event.repository.name != 'opencv_contrib' }} | ||
| name: Build OpenCV | ||
| run: | | ||
| set -x | ||
| echo "::group::Build" | ||
| cd "$GITHUB_WORKSPACE" | ||
| cmake --build build 2>&1 | tee build/log.txt | ||
| echo "::endgroup::" | ||
|
|
||
| - if: ${{ github.event.repository.name != 'opencv_contrib' }} | ||
| name: Check build warnings | ||
| run: | | ||
| set +e | ||
| python3 ./scripts/warnings-handling.py \ | ||
| "$GITHUB_WORKSPACE/build/log.txt" | ||
| if [ $? -ne 0 ]; then | ||
| echo "WARNINGS=1" >> $GITHUB_ENV | ||
| fi | ||
|
|
||
| - name: Configure OpenCV with contrib | ||
| run: | | ||
| echo "::group::Configure" | ||
| cd "$GITHUB_WORKSPACE" | ||
| rm -rf build-contrib | ||
| mkdir -p build-contrib | ||
| cmake \ | ||
| -S opencv \ | ||
| -B build-contrib \ | ||
| -G Ninja \ | ||
| -DOPENCV_EXTRA_MODULES_PATH=opencv_contrib/modules \ | ||
| ${{ env.CMAKE_OPT }} | ||
| echo "::endgroup::" | ||
|
|
||
| - name: Build OpenCV with contrib | ||
| run: | | ||
| set -x | ||
| echo "::group::Build" | ||
| cd "$GITHUB_WORKSPACE" | ||
| cmake --build build-contrib 2>&1 | tee build-contrib/log.txt | ||
| echo "::endgroup::" | ||
|
|
||
| - name: Check build-contrib warnings | ||
| run: | | ||
| set +e | ||
| python3 ./scripts/warnings-handling.py \ | ||
| "$GITHUB_WORKSPACE/build-contrib/log.txt" | ||
| if [ $? -ne 0 ]; then | ||
| echo "WARNINGS=1" >> $GITHUB_ENV | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Suggestion — |
||
| fi | ||
|
|
||
| - if: ${{ always() && env.WARNINGS == '1' }} | ||
| name: Warnings check | ||
| run: | | ||
| echo "::error Warnings have been found!" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Critical — |
||
| exit 1 | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟠 Warning — All 14 original CI jobs removed: Linux, Windows, ARM64, macOS, iOS, Android, TIM-VX, CUDA, OpenVINO, docs, and RISC-V jobs have all been deleted. If this is a permanent change to
4.x, OpenCV loses all cross-platform PR gating. If it's a temporary test branch, the PR description should state that explicitly and the target branch should be changed accordingly. The checklist item 'The PR is proposed to the proper branch' is currently unchecked.