Skip to content

Commit

Permalink
test build all
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Jun 10, 2024
1 parent aea4226 commit ef7cd8b
Show file tree
Hide file tree
Showing 2 changed files with 1,621 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1372,6 +1372,30 @@ jobs:
cmake ${{ env.COMMON_CMAKE_OPTIONS }} -A x64 $(type ../options.txt) -DBUILD_opencv_world=OFF ..
cmake --build . --config Release -j 4
cmake --build . --config Release --target install
- name: build-arm
if: matrix.os-compiler.msvc-version == 'vs2019' || matrix.os-compiler.msvc-version == 'vs2022'
run: |
cd ${{ env.SOURCE_DIR }}
mkdir build-arm; cd build-arm
cmake ${{ env.COMMON_CMAKE_OPTIONS }} -A arm -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_SYSTEM_PROCESSOR=ARM $(type ../options.txt) -DBUILD_opencv_world=OFF ..
cmake --build . --config Release -j 4
cmake --build . --config Release --target install
- name: build-arm64
if: matrix.os-compiler.msvc-version == 'vs2019' || matrix.os-compiler.msvc-version == 'vs2022'
run: |
cd ${{ env.SOURCE_DIR }}
mkdir build-arm64; cd build-arm64
cmake ${{ env.COMMON_CMAKE_OPTIONS }} -A arm64 -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_SYSTEM_PROCESSOR=ARM64 $(type ../options.txt) -DBUILD_opencv_world=OFF ..
cmake --build . --config Release -j 4
cmake --build . --config Release --target install
- name: package-arm
if: matrix.os-compiler.msvc-version == 'vs2019' || matrix.os-compiler.msvc-version == 'vs2022'
run: |
mkdir ${{ env.PACKAGE_NAME }}
mkdir ${{ env.PACKAGE_NAME }}/arm
mkdir ${{ env.PACKAGE_NAME }}/arm64
Copy-Item -Verbose -Recurse -Path "${{ env.SOURCE_DIR }}\build-arm\install\*" -Destination "${{ env.PACKAGE_NAME }}\arm"
Copy-Item -Verbose -Recurse -Path "${{ env.SOURCE_DIR }}\build-arm64\install\*" -Destination "${{ env.PACKAGE_NAME }}\arm64"
- name: package
run: |
mkdir ${{ env.PACKAGE_NAME }}
Expand All @@ -1392,6 +1416,20 @@ jobs:
mkdir build-x64; cd build-x64
cmake ${{ env.COMMON_CMAKE_OPTIONS }} -A x64 -DOpenCV_DIR="$env:GITHUB_WORKSPACE\${{ env.PACKAGE_NAME }}\x64" -DOpenCV_STATIC=ON ..
cmake --build . --config Release -j 4
- name: test-arm
if: matrix.os-compiler.msvc-version == 'vs2019' || matrix.os-compiler.msvc-version == 'vs2022'
run: |
cd test
mkdir build-arm; cd build-arm
cmake ${{ env.COMMON_CMAKE_OPTIONS }} -A arm -DOpenCV_DIR="$env:GITHUB_WORKSPACE\${{ env.PACKAGE_NAME }}\arm" -DOpenCV_STATIC=ON ..
cmake --build . --config Release -j 4
- name: test-arm64
if: matrix.os-compiler.msvc-version == 'vs2019' || matrix.os-compiler.msvc-version == 'vs2022'
run: |
cd test
mkdir build-arm64; cd build-arm64
cmake ${{ env.COMMON_CMAKE_OPTIONS }} -A arm64 -DOpenCV_DIR="$env:GITHUB_WORKSPACE\${{ env.PACKAGE_NAME }}\arm64" -DOpenCV_STATIC=ON ..
cmake --build . --config Release -j 4
- name: upload-zip
uses: actions/upload-artifact@v4
with:
Expand Down
Loading

0 comments on commit ef7cd8b

Please sign in to comment.