mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
Merge pull request #21977 from asenyaev:asen/win_contrib
This commit is contained in:
commit
7c0f49fc36
17
.github/workflows/PR-3.4-W10.yaml
vendored
17
.github/workflows/PR-3.4-W10.yaml
vendored
@ -42,8 +42,8 @@ jobs:
|
|||||||
- name: Merge opencv_extra with ${{ env.SOURCE_BRANCH_NAME }} branch
|
- name: Merge opencv_extra with ${{ env.SOURCE_BRANCH_NAME }} branch
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
RET=$(git ls-remote --heads "git@github.com:${{ env.PR_AUTHOR }}/opencv_extra" "${{ env.SOURCE_BRANCH_NAME }}") || true
|
OPENCV_EXTRA_FORK=$(git ls-remote --heads "git@github.com:/${{ env.PR_AUTHOR }}/opencv_extra" "${{ env.SOURCE_BRANCH_NAME }}") || true
|
||||||
if [[ ! -z "$RET" ]]; then
|
if [[ ! -z "$OPENCV_EXTRA_FORK" ]]; then
|
||||||
echo "Merge opencv_extra with ${{ env.SOURCE_BRANCH_NAME }} branch"
|
echo "Merge opencv_extra with ${{ env.SOURCE_BRANCH_NAME }} branch"
|
||||||
cd opencv_extra
|
cd opencv_extra
|
||||||
git config user.email "opencv.ci"
|
git config user.email "opencv.ci"
|
||||||
@ -154,6 +154,19 @@ jobs:
|
|||||||
git pull -v "git@github.com:${{ env.PR_AUTHOR_FORK }}" "${{ env.SOURCE_BRANCH_NAME }}"
|
git pull -v "git@github.com:${{ env.PR_AUTHOR_FORK }}" "${{ env.SOURCE_BRANCH_NAME }}"
|
||||||
- name: Fetch opencv_contrib
|
- name: Fetch opencv_contrib
|
||||||
run: cd ${{ github.workspace }} && git clone --single-branch --branch ${{ env.TARGET_BRANCH_NAME }} --reference ${{ env.GIT_CACHE }}\opencv_contrib.git --depth 1 git@github.com:opencv/opencv_contrib.git
|
run: cd ${{ github.workspace }} && git clone --single-branch --branch ${{ env.TARGET_BRANCH_NAME }} --reference ${{ env.GIT_CACHE }}\opencv_contrib.git --depth 1 git@github.com:opencv/opencv_contrib.git
|
||||||
|
- name: Merge opencv_contrib with ${{ env.SOURCE_BRANCH_NAME }} branch
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
OPENCV_CONTRIB_FORK=$(git ls-remote --heads "git@github.com:${{ env.PR_AUTHOR }}/opencv_contrib" "${{ env.SOURCE_BRANCH_NAME }}") || true
|
||||||
|
if [[ ! -z "$OPENCV_CONTRIB_FORK" ]]; then
|
||||||
|
echo "Merge opencv_contrib with ${{ env.SOURCE_BRANCH_NAME }} branch"
|
||||||
|
cd /opencv_contrib
|
||||||
|
git config user.email "opencv.ci"
|
||||||
|
git config user.name "opencv.ci"
|
||||||
|
git pull -v "git@github.com:${{ env.PR_AUTHOR }}/opencv_contrib" "${{ env.SOURCE_BRANCH_NAME }}"
|
||||||
|
else
|
||||||
|
echo "No merge since ${{ env.PR_AUTHOR }}/opencv_contrib does not have branch ${{ env.SOURCE_BRANCH_NAME }}"
|
||||||
|
fi
|
||||||
- name: Configure OpenCV Contrib
|
- name: Configure OpenCV Contrib
|
||||||
run: |
|
run: |
|
||||||
mkdir ${{ github.workspace }}\opencv-contrib-build && cd ${{ github.workspace }}\opencv-contrib-build
|
mkdir ${{ github.workspace }}\opencv-contrib-build && cd ${{ github.workspace }}\opencv-contrib-build
|
||||||
|
Loading…
Reference in New Issue
Block a user