This repository has been archived by the owner on Dec 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
98 lines (89 loc) · 2.74 KB
/
ci.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
name: CI
on:
# Triggers the workflow on push or pull request events but only for the
# master branch.
push:
branches: [master]
pull_request:
branches: [master]
# Triggers the workflow every day at 23:00.
schedule:
- cron: '0 23 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in
# parallel.
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Environment variables
env:
# Setup $GOPATH
GOPATH: ${{ github.workspace }}/go
# Turn off modules because they are broken.
GO111MODULE: off
# Run the build for each one of these configurations in parallel.
strategy:
matrix:
# The `${{ matrix.mainboard }}` variable is replaced with each of these.
mainboard:
# '-' is used instead of '/' due to restrictions on artifact upload.
- aeeon-up
- aeeon-upxtreme
- amd-rome
- ampere-jade
- bytedance-g220a
- cubie-board
- digitalloggers-atomicpi
- hpe-dl360gen10
- intel-generic
- intel-hw
- intel-minplatform
- intel-s2600
- lenovo-hr630
- lenovo-sr630
- lenovo-thinkpad
- marvel-macchiatobin
- opentitanpilot-dresden
- pcengines-apu
- pcengines-apu2
- seeed-beaglev
- slimboot
- st-st32mp1517c
- tyan7106
- qemu-x86_64
- walmart-robot
# Do not cancel all jobs steps if a single one fails.
fail-fast: false
# Steps represent a sequence of tasks that will be executed as part of the
# job.
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
id: go
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can
# access it.
- uses: actions/checkout@v3
- name: Install dependent packages
run: |
sudo apt-get update
sudo apt-get install gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi{,hf} libelf-dev u-boot-tools
# Runs a set of commands using the runners shell
- name: Make ${{ matrix.mainboard }} kernel
run: |
PATH=$PATH:$GOPATH/bin
cd $(echo ${{ matrix.mainboard }} | tr '-' '/')
make fetch
make flashkernel
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.mainboard }}
path: |
**/flashkernel
**/flashinitramfs.cpio
retention-days: 30