|
24 | 24 |
|
25 | 25 | - uses: docker/setup-buildx-action@v4 |
26 | 26 |
|
| 27 | + - name: Test native .so (full) |
| 28 | + uses: docker/build-push-action@v7 |
| 29 | + with: |
| 30 | + context: . |
| 31 | + file: ${{ env.DOCKER_BUILD_CONTEXT_FULL }}/Dockerfile |
| 32 | + target: test-native |
| 33 | + build-args: | |
| 34 | + OPENCV_VERSION=${{ env.OPENCV_VERSION }} |
| 35 | + outputs: type=cacheonly |
| 36 | + cache-from: | |
| 37 | + type=gha,scope=full-test-native-${{ github.ref_name }} |
| 38 | + type=gha,scope=full-test-native-main |
| 39 | + type=gha,scope=full-${{ github.ref_name }} |
| 40 | + type=gha,scope=full-main |
| 41 | + cache-to: type=gha,mode=min,scope=full-test-native-${{ github.ref_name }} |
| 42 | + |
| 43 | + - name: Test .NET class libraries (full) |
| 44 | + uses: docker/build-push-action@v7 |
| 45 | + with: |
| 46 | + context: . |
| 47 | + file: ${{ env.DOCKER_BUILD_CONTEXT_FULL }}/Dockerfile |
| 48 | + target: test-dotnet |
| 49 | + build-args: | |
| 50 | + OPENCV_VERSION=${{ env.OPENCV_VERSION }} |
| 51 | + outputs: type=cacheonly |
| 52 | + cache-from: | |
| 53 | + type=gha,scope=full-test-dotnet-${{ github.ref_name }} |
| 54 | + type=gha,scope=full-test-dotnet-main |
| 55 | + type=gha,scope=full-${{ github.ref_name }} |
| 56 | + type=gha,scope=full-main |
| 57 | + cache-to: type=gha,mode=min,scope=full-test-dotnet-${{ github.ref_name }} |
| 58 | + |
27 | 59 | - name: Build with Docker (full) |
28 | 60 | uses: docker/build-push-action@v7 |
29 | 61 | with: |
|
47 | 79 |
|
48 | 80 | - uses: docker/setup-buildx-action@v4 |
49 | 81 |
|
| 82 | + - name: Test native .so (slim) |
| 83 | + uses: docker/build-push-action@v7 |
| 84 | + with: |
| 85 | + context: . |
| 86 | + file: ${{ env.DOCKER_BUILD_CONTEXT_SLIM }}/Dockerfile |
| 87 | + target: test-native |
| 88 | + build-args: | |
| 89 | + OPENCV_VERSION=${{ env.OPENCV_VERSION }} |
| 90 | + outputs: type=cacheonly |
| 91 | + cache-from: | |
| 92 | + type=gha,scope=slim-test-native-${{ github.ref_name }} |
| 93 | + type=gha,scope=slim-test-native-main |
| 94 | + type=gha,scope=slim-${{ github.ref_name }} |
| 95 | + type=gha,scope=slim-main |
| 96 | + cache-to: type=gha,mode=min,scope=slim-test-native-${{ github.ref_name }} |
| 97 | + |
50 | 98 | - name: Build with Docker (slim) |
51 | 99 | uses: docker/build-push-action@v7 |
52 | 100 | with: |
|
0 commit comments