linuxboot/mainboards/.github/workflows/ci.yml

80 lines
2.2 KiB
YAML
Raw Normal View History

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]
# 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:
- 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.
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can
# access it.
- uses: actions/checkout@v2
- 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 ${{ matrix.mainboard }}
make fetch
make flashkernel