-
Notifications
You must be signed in to change notification settings - Fork 26
46 lines (44 loc) · 1.46 KB
/
utility-libraries.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
38
39
40
41
42
43
44
45
46
name: Build utility-libraries applications
on:
workflow_dispatch:
push:
paths:
- 'utility-libraries/**'
- '!utility-libraries/**/README.md'
- '.github/workflows/utility-libraries.yml'
jobs:
test-app:
name: Test app
runs-on: ubuntu-latest
strategy:
matrix:
axis-os: ["12.2.52"]
arch: ["armv7hf", "aarch64"]
env:
EXREPO: acap-native-examples
EXNAME: utility-libraries
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Build ${{ env.example }} application
env:
example: custom_lib_example
imagetag: ${{ env.EXREPO }}_custom-lib-example:${{ matrix.arch }}
run: |
docker image rm -f $imagetag
cd $EXNAME/$example
docker build --no-cache --build-arg ARCH=${{ matrix.arch }} --tag $imagetag .
docker cp $(docker create $imagetag):/opt/app ./build
cd ../..
docker image rm -f $imagetag
- name: Build ${{ env.example }} application
env:
example: openssl_curl_example
imagetag: openssl-curl-example:${{ matrix.arch }}
run: |
docker image rm -f $imagetag
cd $EXNAME/$example
docker build --no-cache --build-arg ARCH=${{ matrix.arch}} --build-arg APP_DEBUG=yes --tag $imagetag .
docker cp $(docker create $imagetag):/opt/app ./build
cd ../..
docker image rm -f $imagetag