Skip to content

Commit 4b7e134

Browse files
authored
Merge pull request #1780 from shimat/mod_linux_arm
Update linux-arm.yml
2 parents cddeea3 + 9c9a853 commit 4b7e134

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

.github/workflows/linux-arm.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,32 @@ on:
99

1010
env:
1111
DEBIAN_FRONTEND: noninteractive
12-
OPENCV_VERSION: 4.11.0
12+
OPENCV_VERSION: 4.12.0
1313

1414
jobs:
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: |

0 commit comments

Comments
 (0)