Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rainyl committed Sep 24, 2024
1 parent 4d616aa commit e205f3c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ jobs:
echo "$GITHUB_ENV"
cd ${{ env.SOURCE_DIR }}
mkdir build && cd build
cmake ${{ env.COMMON_CMAKE_OPTIONS }} -S .. \
`cat ${{ github.workspace }}/options.txt` \
cmake `cat ${{ github.workspace }}/options.txt` \
${{ env.COMMON_CMAKE_OPTIONS }} -S .. \
-DFFMPEG_DIR="${{ env.FFMPEG_ROOT }}/cmake" \
-DFFMPEG_ARCH="${{ matrix.abi }}"
cmake --build . -j $(nproc)
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/apple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
-DBUILD_OPENJPEG=OFF \
-DWITH_OPENCL=OFF \
-DWITH_OPENCL_SVM=OFF \
-DCMAKE_POLICY_DEFAULT_CMP0074=NEW \
steps:
- uses: actions/checkout@v4
- name: setup-opencv-source
Expand All @@ -56,8 +57,8 @@ jobs:
run: |
cd ${{ env.SOURCE_DIR }}
mkdir build && cd build
cmake ${{ env.COMMON_CMAKE_OPTIONS }} -S .. \
`cat ../../options.txt` \
cmake `cat ${{ github.workspace }}/options.txt` \
${{ env.COMMON_CMAKE_OPTIONS }} -S .. \
-DPLATFORM=OS64 \
-DFFMPEG_DIR="${{ env.FFMPEG_ROOT }}/cmake"
cmake --build . -j 4
Expand Down Expand Up @@ -114,6 +115,7 @@ jobs:
-DBUILD_OPENJPEG=OFF \
-DWITH_OPENCL=OFF \
-DWITH_OPENCL_SVM=OFF \
-DCMAKE_POLICY_DEFAULT_CMP0074=NEW \
steps:
- uses: actions/checkout@v4
- name: setup-opencv-source
Expand All @@ -135,8 +137,8 @@ jobs:
run: |
cd ${{ env.SOURCE_DIR }}
mkdir build && cd build
cmake ${{ env.COMMON_CMAKE_OPTIONS }} -S .. \
`cat ../../options.txt` \
cmake `cat ${{ github.workspace }}/options.txt` \
${{ env.COMMON_CMAKE_OPTIONS }} -S .. \
-DPLATFORM=${{ matrix.platform.name }} \
-DFFMPEG_DIR="${{ env.FFMPEG_ROOT }}/cmake" \
-DOPENCV_DISABLE_FILESYSTEM_SUPPORT=ON
Expand Down Expand Up @@ -212,9 +214,9 @@ jobs:
run: |
cd ${{ env.SOURCE_DIR }}
mkdir build && cd build
cmake ${{ env.COMMON_CMAKE_OPTIONS }} -S .. \
cmake `cat ${{ github.workspace }}/options.txt` \
${{ env.COMMON_CMAKE_OPTIONS }} -S .. \
-DPLATFORM=${{ matrix.osname.platform }} \
`cat ../../options.txt` \
-DFFMPEG_DIR="${{ env.FFMPEG_ROOT }}/cmake"
cmake --build . -j 4
cmake --build . --target install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
run: |
cd ${{ env.SOURCE_DIR }}
mkdir build && cd build
cmake ${{ env.COMMON_CMAKE_OPTIONS }} -S .. \
cmake `cat ${{ github.workspace }}/options.txt` \
${{ env.COMMON_CMAKE_OPTIONS }} -S .. \
${{ env.TOOLCHAIN_FILE }} \
`cat ${{ github.workspace }}/options.txt` \
-DFFMPEG_DIR="${{ env.FFMPEG_ROOT }}/cmake" \
-DFFMPEG_ARCH=${{ matrix.os.ffmpeg_arch }}
cmake --build . -j $(nproc)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ jobs:
env:
UseMultiToolTask: true
COMMON_CMAKE_OPTIONS: |
$(type ${{ github.workspace }}/options.txt) `
-T ${{ matrix.os.toolset-version }},host=x64 `
-DCMAKE_INSTALL_PREFIX=install `
-DOPENCV_EXTRA_MODULES_PATH="${{ github.workspace }}/opencv_contrib/modules" `
-DCMAKE_POLICY_DEFAULT_CMP0074=NEW `
-A ${{ matrix.os.arch }} `
-DCMAKE_SYSTEM_NAME=Windows `
-DCMAKE_SYSTEM_PROCESSOR=${{ matrix.os.arch }} `
$(type ${{ github.workspace }}/options.txt) `
-DFFMPEG_ARCH=${{ matrix.os.arch }} `
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit e205f3c

Please sign in to comment.