-
Notifications
You must be signed in to change notification settings - Fork 1
100 lines (98 loc) · 3.59 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: CI Build
on:
push:
branches: [ master ]
tags:
- '*'
pull_request:
branches: [ master ]
jobs:
netxfirmware:
runs-on: ubuntu-latest
container: ghcr.io/muhkuh-sys/mbs_ubuntu_2004_x86_64:latest
steps:
- name: Checkout repository
# Use the old checkout v1 here. The newer v2 requires git 2.28 which is not available in the standard distribution.
uses: actions/checkout@v1
with:
submodules: recursive
- name: Build netX firmware
run: python3 mbs/mbs
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: firmware
path: targets/firmware.tar.gz
build:
needs: netxfirmware
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- # Ubuntu 18.04 x86
image: ghcr.io/muhkuh-sys/mbs_ubuntu_1804_x86:latest
distribution-id: ubuntu
distribution-version: "18.04"
cpu-architecture: x86
- # Ubuntu 18.04 x86_64
image: ghcr.io/muhkuh-sys/mbs_ubuntu_1804_x86_64:latest
distribution-id: ubuntu
distribution-version: "18.04"
cpu-architecture: x86_64
- # Ubuntu 18.04 arm64
image: ghcr.io/muhkuh-sys/mbs_ubuntu_1804_x86_64:latest
distribution-id: ubuntu
distribution-version: "18.04"
cpu-architecture: arm64
- # Ubuntu 20.04 x86_64
image: ghcr.io/muhkuh-sys/mbs_ubuntu_2004_x86_64:latest
distribution-id: ubuntu
distribution-version: "20.04"
cpu-architecture: x86_64
- # Ubuntu 20.04 arm64
image: ghcr.io/muhkuh-sys/mbs_ubuntu_2004_x86_64:latest
distribution-id: ubuntu
distribution-version: "20.04"
cpu-architecture: arm64
- # Ubuntu 22.04 x86_64
image: ghcr.io/muhkuh-sys/mbs_ubuntu_2204_x86_64:latest
distribution-id: ubuntu
distribution-version: "22.04"
cpu-architecture: x86_64
- # Ubuntu 22.04 armhf
image: ghcr.io/muhkuh-sys/mbs_ubuntu_2204_x86_64:latest
distribution-id: ubuntu
distribution-version: "22.04"
cpu-architecture: armhf
- # Ubuntu 22.04 arm64
image: ghcr.io/muhkuh-sys/mbs_ubuntu_2204_x86_64:latest
distribution-id: ubuntu
distribution-version: "22.04"
cpu-architecture: arm64
- # Ubuntu 22.04 riscv64
image: ghcr.io/muhkuh-sys/mbs_ubuntu_2204_x86_64:latest
distribution-id: ubuntu
distribution-version: "22.04"
cpu-architecture: riscv64
container: ${{ matrix.platform.image }}
steps:
- name: Checkout repository
# Use the old checkout v1 here. The newer v2 requires git 2.28 which is not available in the standard distribution.
uses: actions/checkout@v1
with:
submodules: recursive
- name: Download firmware
# Use the old download-artifact v1 here. The newer v2 does not work with 32bit containers.
uses: actions/download-artifact@v1
with:
name: firmware
- name: Depack firmware
run: tar fvxz firmware/firmware.tar.gz
- name: Build
run: ./build_artifact.py ${{ matrix.platform.distribution-id }} ${{ matrix.platform.distribution-version }} ${{ matrix.platform.cpu-architecture }} --cmake-define BUILDCFG_SKIP_NETX_FW=ON
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: artifacts_${{ matrix.platform.distribution-id }}_${{ matrix.platform.distribution-version }}_${{ matrix.platform.cpu-architecture }}
path: build/repository