-
Notifications
You must be signed in to change notification settings - Fork 26
58 lines (55 loc) · 1.84 KB
/
axevent.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
47
48
49
50
51
52
53
54
55
56
57
58
name: Build axevent applications
on:
workflow_dispatch:
push:
paths:
- 'axevent/**'
- '!axevent/**/README.md'
- '.github/workflows/axevent.yml'
jobs:
test-app:
name: Test app
runs-on: ubuntu-latest
strategy:
matrix:
axis-os: ["11.11.70"]
arch: ["armv7hf", "aarch64"]
env:
EXREPO: acap-native-examples
EXNAME: axevent
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Build ${{ env.example }} application
env:
example: send_event
imagetag: ${{ env.EXREPO }}_send-event:${{ matrix.arch }}
run: |
docker image rm -f $imagetag
cd $EXNAME/$example
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
- name: Build ${{ env.example }} application
env:
example: subscribe_to_event
imagetag: ${{ env.EXREPO }}_subscribe-to-event:${{ matrix.arch }}
run: |
docker image rm -f $imagetag
cd $EXNAME/$example
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
- name: Build ${{ env.example }} application
env:
example: subscribe_to_events
imagetag: ${{ env.EXREPO }}_subscribe-to-events:${{ matrix.arch }}
run: |
docker image rm -f $imagetag
cd $EXNAME/$example
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