OpenCV+Extra+ippicv: add version v4.12.0-p0 #1328
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| paths: | |
| - 'cmake/projects/**' | |
| - 'cmake/modules/**' | |
| - 'cmake/schemes/**' | |
| - 'cmake/templates/**' | |
| - 'tests/**' | |
| pull_request: | |
| paths: | |
| - 'cmake/projects/**' | |
| - 'cmake/modules/**' | |
| - 'cmake/schemes/**' | |
| - 'cmake/templates/**' | |
| - 'tests/**' | |
| workflow_dispatch: | |
| inputs: | |
| project: | |
| description: 'Project name' | |
| required: true | |
| jobs: | |
| check_urls: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Git checkout | |
| uses: actions/checkout@v4.1.1 | |
| - name: Manual dispatch, get project name from input | |
| if: github.event_name == 'workflow_dispatch' | |
| run: | | |
| echo '["cmake/projects/${{ github.event.inputs.project }}/hunter.cmake"]' > ${HOME}/files.json | |
| - name: Get changed files and save them to ${HOME}/files.json | |
| if: github.event_name != 'workflow_dispatch' | |
| id: files | |
| uses: lots0logs/gh-action-get-changed-files@2.2.2 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get install -yq python3-pycurl | |
| - name: Check changed projects for working URLs | |
| run: | | |
| python maintenance/check-urls.py | |
| set_matrix: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.set-matrix.outputs.matrix }} | |
| steps: | |
| - name: Git checkout | |
| uses: actions/checkout@v4.1.1 | |
| - name: Manual dispatch, get project name from input | |
| if: github.event_name == 'workflow_dispatch' | |
| run: | | |
| echo '["cmake/projects/${{ github.event.inputs.project }}/hunter.cmake"]' > ${HOME}/files.json | |
| - name: Get changed files and save them to ${HOME}/files.json | |
| if: github.event_name != 'workflow_dispatch' | |
| id: files | |
| uses: lots0logs/gh-action-get-changed-files@2.2.2 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set matrix for subsequent build | |
| id: set-matrix | |
| run: | | |
| MATRIX=`python .github/workflows/set_matrix.py` | |
| if [ "${MATRIX}" ]; then | |
| echo "matrix=${MATRIX}" >> $GITHUB_OUTPUT | |
| else | |
| echo "matrix=${MATRIX}" | |
| exit 1 | |
| fi | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: toolchains | |
| path: .github/toolchains | |
| build: | |
| name: ${{ matrix.project }} ${{ matrix.toolchain }} ${{ matrix.os }} | |
| needs: set_matrix | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: ${{ fromJson(needs.set_matrix.outputs.matrix) }} | |
| env: | |
| TOOLCHAIN: '${{ matrix.toolchain }}' | |
| PROJECT_DIR: ${{ matrix.example }} | |
| SCRIPT: ${{ matrix.script }} | |
| GITHUB_USER_PASSWORD: ${{ secrets.CPP_PM_BOT_TOKEN }} | |
| steps: | |
| - name: Git checkout with submodules | |
| uses: actions/checkout@v4.1.1 | |
| with: | |
| submodules: true | |
| - name: Download all workflow run artifacts | |
| uses: actions/download-artifact@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5.1.0 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Set up Python environment variable (Unix) | |
| if: runner.os != 'Windows' | |
| run: echo "HUNTER_PYTHON_LOCATION=$pythonLocation" >> $GITHUB_ENV | |
| - name: Set up Python environment variable (Windows) | |
| if: runner.os == 'Windows' | |
| run: echo "HUNTER_PYTHON_LOCATION=$env:pythonLocation" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8 | |
| - name: Install requests python module for upload script | |
| run: python -m pip install requests gitpython | |
| - name: Build on Unix | |
| if: runner.os != 'Windows' | |
| env: | |
| BRANCH_NAME: ${{ github.ref_name }} | |
| run: | | |
| python .github/workflows/ci/build.py | |
| - name: Build on Windows | |
| if: runner.os == 'Windows' && matrix.toolchain != 'hunter_tests' | |
| env: | |
| BRANCH_NAME: ${{ github.ref_name }} | |
| VCVARSALL: ${{ matrix.VCVARSALL }} | |
| VCVARSALL_ARGS: ${{ matrix.VCVARSALL_ARGS }} | |
| run: | | |
| if ("$env:VCVARSALL") { | |
| Write-Host "call VCVARSALL using command '${env:VCVARSALL}' and args '${env:VCVARSALL_ARGS}'" | |
| cmd /c 'call "%VCVARSALL%" %VCVARSALL_ARGS% && set' | foreach { | |
| if ($_ -match "=") { | |
| #"processing line: '$_'" | |
| $v = $_.split("="); | |
| set-item -force -path "ENV:\$($v[0])" -value "$($v[1])"; | |
| } | |
| } | |
| } | |
| python .github/workflows/ci/build.py | |
| set_status: | |
| needs: [ set_matrix, build ] | |
| if: always() && needs.set_matrix.result == 'success' && github.event_name != 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Git checkout | |
| uses: actions/checkout@v4.1.1 | |
| - name: Get job status via GitHub API | |
| uses: octokit/request-action@v2.x | |
| id: get_job_data | |
| with: | |
| route: GET /repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Parse job status | |
| run: | | |
| mkdir job_data | |
| echo '${{ steps.get_job_data.outputs.data }}' > job_data.json | |
| python .github/workflows/set_status.py | |
| - name: Deploy job status to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4.0.0 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: job_data | |
| destination_dir: _data/projects | |
| keep_files: true | |
| enable_jekyll: true |