-
Notifications
You must be signed in to change notification settings - Fork 150
101 lines (88 loc) · 3.12 KB
/
build-udev-video-broker-container.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Build UDEV Broker
on:
workflow_run:
workflows: ["Build Production Rust Code"]
branches:
- main
- 'v[0-9]+.[0-9]+.[0-9]+*'
types:
- completed
env:
AKRI_COMPONENT: udev-video-broker
MAKEFILE_COMPONENT: udev
jobs:
per-arch:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
timeout-minutes: 40
strategy:
matrix:
arch:
- arm64v8
- arm32v7
- amd64
steps:
- name: Checkout the head commit of the branch
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Prepare To Install
uses: actions/setup-node@v3
with:
node-version: 12
- name: Install Deps
run: |
yarn install
yarn add @actions/core @actions/github @actions/exec fs
- name: Download rust build artifacts
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
workflow_conclusion: success
commit: ${{ github.event.workflow_run.head_sha }}
name: rust-${{ matrix.arch }}-binaries
path: /tmp
- name: Unpack Rust binaries
run: |
tar -xvf /tmp/rust-${{ matrix.arch }}-binaries.tar
- name: Run Per-Arch component build for ${{ env.AKRI_COMPONENT }}
uses: ./.github/actions/build-component-per-arch
with:
github_event_name: ${{ github.event.workflow_run.event }}
github_ref: ${{ github.ref }}
container_name: ${{ env.AKRI_COMPONENT }}
container_prefix: ghcr.io/project-akri/akri
container_registry_base_url: ghcr.io
container_registry_username: ${{ secrets.crUsername }}
container_registry_password: ${{ secrets.crPassword }}
makefile_component_name: ${{ env.MAKEFILE_COMPONENT }}
platform: ${{ matrix.arch }}
build_rust: "0"
multi-arch:
if: ${{ github.event.workflow_run.conclusion == 'success' }} && ((github.event.workflow_run.event == 'release') || (github.event.workflow_run.event == 'push' && github.ref == 'refs/heads/main'))
needs: per-arch
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Prepare To Install
uses: actions/setup-node@v3
with:
node-version: 12
- name: Install Deps
run: |
yarn install
yarn add @actions/core @actions/github @actions/exec fs
- name: Run Multi-Arch component build for ${{ env.AKRI_COMPONENT }}
uses: ./.github/actions/build-component-multi-arch
with:
github_event_name: ${{ github.event.workflow_run.event }}
container_name: ${{ env.AKRI_COMPONENT }}
container_prefix: ghcr.io/project-akri/akri
container_registry_base_url: ghcr.io
container_registry_username: ${{ secrets.crUsername }}
container_registry_password: ${{ secrets.crPassword }}
makefile_component_name: ${{ env.MAKEFILE_COMPONENT }}