-
Notifications
You must be signed in to change notification settings - Fork 26
37 lines (36 loc) · 1.05 KB
/
vdo-opencl-filtering.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build vdo-opencl-filtering application
on:
workflow_dispatch:
push:
paths:
- 'vdo-opencl-filtering/**'
- '!vdo-opencl-filtering/README.md'
- '.github/workflows/vdo-opencl-filtering.yml'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- arch: armv7hf
chip: cpu
axis-os: 11.8.61
- arch: aarch64
chip: artpec8
axis-os: 11.8.61
env:
EXREPO: acap-native-examples
EXNAME: vdo-opencl-filtering
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Build ${{ env.EXNAME }} application
env:
imagetag: ${{ env.EXREPO }}_${{ env.EXNAME }}_${{ matrix.chip }}:${{ matrix.arch }}
run: |
docker image rm -f $imagetag
cd $EXNAME
docker build --no-cache --tag $imagetag --build-arg ARCH=${{ matrix.arch }} .
docker cp $(docker create $imagetag):/opt/app ./build
cd ..
docker image rm -f $imagetag