File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010env :
1111 DEBIAN_FRONTEND : noninteractive
12- OPENCV_VERSION : 4.11 .0
12+ OPENCV_VERSION : 4.12 .0
1313
1414jobs :
1515 build :
16- runs-on : ubuntu-22.04
16+ runs-on : ubuntu-latest
1717 steps :
1818 - uses : actions/checkout@v4
1919
20+ - uses : docker/setup-qemu-action@v3
21+
2022 - uses : docker/setup-buildx-action@v3
2123 with :
2224 install : true
2325
24- - uses : docker/setup-qemu-action@v3
25-
26- - name : Build with Docker
27- run : |
28- # Override OpenCV version in Dockerfile
29- docker build \
30- -t opencvsharp-linux-arm:latest \
31- --output=type=docker \
32- --platform=linux/arm/v7 \
33- --build-arg OPENCV_VERSION \
34- ./docker/ubuntu22-dotnet6-opencv4.8.0
26+ # Build with Buildx and cache Docker layers in GitHub Actions cache
27+ - name : Build with Docker (cached)
28+ uses : docker/build-push-action@v6
29+ with :
30+ context : ./docker/ubuntu24-dotnet8-opencv4.12.0
31+ platforms : linux/arm64
32+ build-args : |
33+ OPENCV_VERSION=${{ env.OPENCV_VERSION }}
34+ # Load the built image to local Docker for later docker create/cp
35+ outputs : type=docker,name=opencvsharp-linux-arm:latest
36+ cache-from : type=gha
37+ cache-to : type=gha,mode=max
3538
3639 - name : Extract build files from Docker instance
3740 run : |
You can’t perform that action at this time.
0 commit comments