-
Notifications
You must be signed in to change notification settings - Fork 26
34 lines (33 loc) · 1.04 KB
/
vdostream.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
name: Build vdostream application
on:
workflow_dispatch:
push:
paths:
- 'vdostream/**'
- '!vdostream/README.md'
- '.github/workflows/vdostream.yml'
jobs:
test-app:
name: Test app
runs-on: ubuntu-latest
strategy:
matrix:
axis-os: ["11.11.70"]
arch: ["armv7hf", "aarch64"]
vdo-format: ["h264", "h265", "y800", "jpeg", "nv12"]
env:
EXREPO: acap-native-examples
EXNAME: vdostream
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Build ${{ env.EXNAME }} application
env:
imagetag: ${{ env.EXREPO }}_${{ env.EXNAME }}_${{matrix.vdo-format}}:${{ matrix.arch }}
run: |
docker image rm -f $imagetag
cd $EXNAME
docker build --no-cache --build-arg ARCH=${{ matrix.arch }} --build-arg VDO_FORMAT=${{ matrix.vdo-format }} --tag $imagetag .
docker cp $(docker create $imagetag):/opt/app ./build_${{ matrix.vdo-format }}
cd ..
docker image rm -f $imagetag