2021-06-09 19:03:37 +00:00
|
|
|
name: CI
|
|
|
|
on:
|
2021-06-16 01:24:53 +00:00
|
|
|
# Triggers the workflow on push or pull request events but only for the
|
|
|
|
# master branch.
|
2021-06-09 19:03:37 +00:00
|
|
|
push:
|
2021-06-16 01:24:53 +00:00
|
|
|
branches: [master]
|
2021-06-09 19:03:37 +00:00
|
|
|
pull_request:
|
2021-06-16 01:24:53 +00:00
|
|
|
branches: [master]
|
2021-06-09 19:03:37 +00:00
|
|
|
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
2021-06-16 01:24:53 +00:00
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in
|
|
|
|
# parallel.
|
2021-06-09 19:03:37 +00:00
|
|
|
jobs:
|
|
|
|
# This workflow contains a single job called "build"
|
|
|
|
build:
|
|
|
|
# The type of runner that the job will run on
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
2021-06-17 07:24:36 +00:00
|
|
|
# Environment variables
|
|
|
|
env:
|
|
|
|
# Setup $GOPATH
|
|
|
|
GOPATH: ${{ github.workspace }}/go
|
|
|
|
# Turn off modules because they are broken.
|
|
|
|
GO111MODULE: off
|
|
|
|
|
2021-06-16 01:24:53 +00:00
|
|
|
# Run the build for each one of these configurations in parallel.
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
# The `${{ matrix.mainboard }}` variable is replaced with each of these.
|
|
|
|
mainboard:
|
|
|
|
- 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
|
|
|
|
- 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.
|
2021-06-09 19:03:37 +00:00
|
|
|
steps:
|
2021-06-16 01:24:53 +00:00
|
|
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can
|
|
|
|
# access it.
|
2021-06-09 19:03:37 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2021-06-17 07:24:36 +00:00
|
|
|
- name: Install dependent packages
|
2021-06-25 01:13:15 +00:00
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2021-06-23 19:15:37 +00:00
|
|
|
sudo apt-get install gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi{,hf} libelf-dev u-boot-tools
|
2021-06-17 07:24:36 +00:00
|
|
|
|
2021-06-09 19:03:37 +00:00
|
|
|
# Runs a set of commands using the runners shell
|
2021-06-16 01:24:53 +00:00
|
|
|
- name: Make ${{ matrix.mainboard }} kernel
|
2021-06-09 19:03:37 +00:00
|
|
|
run: |
|
2021-06-17 07:24:36 +00:00
|
|
|
PATH=$PATH:$GOPATH/bin
|
|
|
|
cd ${{ matrix.mainboard }}
|
2021-06-11 23:58:37 +00:00
|
|
|
make fetch
|
2021-06-09 19:03:37 +00:00
|
|
|
make flashkernel
|