-
Notifications
You must be signed in to change notification settings - Fork 90
138 lines (131 loc) · 4.44 KB
/
Copy pathmain.yml
File metadata and controls
138 lines (131 loc) · 4.44 KB
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: CI
on:
workflow_dispatch:
inputs:
build_debian_example_image:
description: 'Build Debian example image'
required: false
default: true
type: boolean
build_debian_example_qemu_image:
description: 'Build Debian example QEMU image'
required: false
default: true
type: boolean
build_debian_swupdate_image:
description: 'Build Debian secure boot SWUpdate image'
required: false
default: true
type: boolean
build_debian_swupdate_qemu_image:
description: 'Build Debian SWUpdate QEMU image'
required: false
default: true
type: boolean
build_bootloaders:
description: 'Build bootloaders'
required: false
default: true
type: boolean
push:
branches:
- master
- stable/V*
tags:
- '*'
paths-ignore:
- '**.md'
- 'doc/**'
- '.github/workflows/link-check.yml'
- '.lychee.toml'
pull_request:
branches:
- master
- stable/V*
types:
- opened
- synchronize
- reopened
paths-ignore:
- '**.md'
- 'doc/**'
- '.github/workflows/link-check.yml'
- '.lychee.toml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
debian-example-image:
name: Debian example image
if: github.event_name != 'workflow_dispatch' || inputs.build_debian_example_image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build image
run: ./kas-container build kas-iot2050-example.yml
- name: Upload image
uses: actions/upload-artifact@v4
with:
name: iot2050-example-image
path: |
build/tmp/deploy/images/iot2050/iot2050-image-example-iot2050-debian-iot2050.wic
build/tmp/deploy/images/iot2050/iot2050-image-example-iot2050-debian-iot2050.wic.bmap
debian-example-qemu-image:
name: Debian example QEMU image
if: github.event_name != 'workflow_dispatch' || inputs.build_debian_example_qemu_image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build image
run: ./kas-container build kas-iot2050-example.yml:kas-iot2050-qemu.yml
debian-swupdate-image:
name: Debian secure boot SWUpdate image
if: github.event_name != 'workflow_dispatch' || inputs.build_debian_swupdate_image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Mock EIO binary stubs
run: |
touch ./meta-sm/recipes-app/iot2050-eiofsd/files/bin/iot2050-eiofsd
touch ./meta-sm/recipes-app/iot2050-eiofsd/files/bin/map3-fw.bin
touch ./meta-sm/recipes-app/iot2050-eiofsd/files/bin/firmware-version
- name: Build image
run: ./kas-container build kas-iot2050-swupdate.yml:kas/opt/secure-boot.yml:kas/opt/preempt-rt.yml
- name: Upload image
uses: actions/upload-artifact@v4
with:
name: iot2050-secureboot-swu-image
path: |
build/tmp/deploy/images/iot2050/iot2050-image-swu-example-iot2050-debian-iot2050.wic
build/tmp/deploy/images/iot2050/iot2050-image-swu-example-iot2050-debian-iot2050.wic.bmap
debian-swupdate-qemu-image:
name: Debian SWUpdate QEMU image
if: github.event_name != 'workflow_dispatch' || inputs.build_debian_swupdate_qemu_image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Mock EIO binary stubs
run: |
touch ./meta-sm/recipes-app/iot2050-eiofsd/files/bin/iot2050-eiofsd
touch ./meta-sm/recipes-app/iot2050-eiofsd/files/bin/map3-fw.bin
touch ./meta-sm/recipes-app/iot2050-eiofsd/files/bin/firmware-version
- name: Build image
run: ./kas-container build kas-iot2050-swupdate.yml:kas-iot2050-qemu.yml
bootloaders:
name: Bootloaders
if: github.event_name != 'workflow_dispatch' || inputs.build_bootloaders
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build bootloader image
run: ./kas-container build kas-iot2050-boot.yml
- name: Archive bootloaders
uses: actions/upload-artifact@v4
with:
name: iot2050-bootloaders
path: build/tmp/deploy/images/iot2050/*.bin