Fix bug that creates an empty output image #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- arch: aarch64 | |
chip: cv25 | |
axis-os: 11.5.64 | |
env: | |
EXREPO: acap-native-examples | |
EXNAME: object-detection-cv25 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: docker/setup-buildx-action@v2 | |
- 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 | |
cp app/manifest.json.${{ matrix.chip }} app/manifest.json | |
docker build --no-cache --tag $imagetag . | |
docker cp $(docker create $imagetag):/opt/app ./build_${{ matrix.chip }} | |
cd .. | |
docker image rm -f $imagetag |