-
Notifications
You must be signed in to change notification settings - Fork 77
65 lines (60 loc) · 2.24 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
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-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: Mock EIO binary stubs
run: |
touch ./recipes-app/iot2050-eio-manager/files/bin/iot2050-eiofsd
touch ./recipes-app/iot2050-eio-manager/files/bin/map3-fw.bin
touch ./recipes-app/iot2050-eio-manager/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:kas/opt/eio.yml
- name: Upload image
uses: actions/upload-artifact@v3
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
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
run: ./kas-container build kas-iot2050-boot.yml
- name: Archive bootloaders
uses: actions/upload-artifact@v3
with:
name: iot2050-bootloaders
path: build/tmp/deploy/images/iot2050/*.bin