File tree Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Expand file tree Collapse file tree 1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change 9
9
10
10
env :
11
11
DEBIAN_FRONTEND : noninteractive
12
- OPENCV_VERSION : 4.11 .0
12
+ OPENCV_VERSION : 4.12 .0
13
13
14
14
jobs :
15
15
build :
16
- runs-on : ubuntu-22.04
16
+ runs-on : ubuntu-latest
17
17
steps :
18
18
- uses : actions/checkout@v4
19
19
20
+ - uses : docker/setup-qemu-action@v3
21
+
20
22
- uses : docker/setup-buildx-action@v3
21
23
with :
22
24
install : true
23
25
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
35
38
36
39
- name : Extract build files from Docker instance
37
40
run : |
You can’t perform that action at this time.
0 commit comments