-
Notifications
You must be signed in to change notification settings - Fork 77
80 lines (74 loc) · 2.71 KB
/
main.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
name: CI
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
debian-example-image:
name: Debian example image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Free Disk Space
uses: ./.github/workflows/free-disk-space
- name: Build image
run: ./kas-container build kas-iot2050-example.yml
- name: Upload image
uses: actions/upload-artifact@v3
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-rt-example-image:
name: Debian RT example image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Free Disk Space
uses: ./.github/workflows/free-disk-space
- name: Build image
run: ./kas-container build kas-iot2050-example.yml:kas/opt/preempt-rt.yml
- name: Upload image
uses: actions/upload-artifact@v3
with:
name: iot2050-example-image-rt
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-swupdate-image:
name: Debian secure boot SWUpdate image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Free Disk Space
uses: ./.github/workflows/free-disk-space
- name: Build image
run: ./kas-container build kas-iot2050-swupdate.yml:kas/opt/secure-boot.yml
- name: Upload image
uses: actions/upload-artifact@v3
with:
name: iot2050-swupdate-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
bootloaders:
name: Bootloaders
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Free Disk Space
uses: ./.github/workflows/free-disk-space
- name: Build bootloader image for PG1
run: ./kas-container build kas-iot2050-boot-pg1.yml
- name: Build bootloader image for PG2 & m.2
run: ./kas-container build kas-iot2050-boot-pg2.yml
- name: Archive bootloaders
uses: actions/upload-artifact@v3
with:
name: iot2050-bootloaders
path: build/tmp/deploy/images/iot2050/*.bin