-
Notifications
You must be signed in to change notification settings - Fork 39
36 lines (35 loc) · 1.01 KB
/
object-detection-cv25.yml
File metadata and controls
36 lines (35 loc) · 1.01 KB
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
name: Build object-detection-cv25 application
on:
workflow_dispatch:
push:
paths:
- 'object-detection-cv25/**'
- '!object-detection-cv25/README.md'
- '.github/workflows/object-detection-cv25.yml'
jobs:
test-app:
name: Test app
runs-on: ubuntu-latest
strategy:
matrix:
include:
- arch: aarch64
chip: cv25
axis-os: 12.2.52
env:
EXREPO: acap-native-examples
EXNAME: object-detection-cv25
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Build ${{ env.example }} application
env:
example: ${{ env.EXNAME }}
imagetag: ${{ env.EXREPO }}_${{ env.EXNAME }}_${{ matrix.chip }}:${{ matrix.arch }}
run: |
docker image rm -f $imagetag
cd $EXNAME
docker build --no-cache --tag $imagetag .
docker cp $(docker create $imagetag):/opt/app ./build_${{ matrix.chip }}
cd ..
docker image rm -f $imagetag