2021-01-19 07:56:31 +08:00
|
|
|
---
|
|
|
|
# Tools that can save round-trips to github and a lot of time:
|
|
|
|
#
|
|
|
|
# yamllint -f parsable pull_request.yml
|
|
|
|
# pip3 install ruamel.yaml.cmd
|
|
|
|
# yaml merge-expand pull_request.yml exp.yml &&
|
|
|
|
# diff -w -u pull_request.yml exp.yml
|
|
|
|
#
|
|
|
|
# github.com also has a powerful web editor that can be used without
|
|
|
|
# committing.
|
|
|
|
|
2021-01-28 10:24:55 +08:00
|
|
|
# This is the name of this workflow and should technically be called
|
|
|
|
# something like "Main Workflow" but the place where most people see
|
|
|
|
# this name is the Checks window next to other, non-github checks.
|
|
|
|
name: GitHub Actions
|
2021-01-19 07:56:31 +08:00
|
|
|
|
|
|
|
# yamllint disable-line rule:truthy
|
|
|
|
on:
|
|
|
|
push:
|
2021-01-27 15:40:23 +08:00
|
|
|
branches:
|
2021-03-31 01:55:00 +08:00
|
|
|
- 'main'
|
2021-01-27 15:40:23 +08:00
|
|
|
- 'stable-**'
|
|
|
|
- '**-stable'
|
2021-01-19 07:56:31 +08:00
|
|
|
pull_request:
|
2021-01-27 15:40:23 +08:00
|
|
|
branches:
|
2021-03-31 01:55:00 +08:00
|
|
|
- 'main'
|
2021-01-27 15:40:23 +08:00
|
|
|
- 'stable-**'
|
|
|
|
- '**-stable'
|
2021-01-19 07:56:31 +08:00
|
|
|
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
# Some jobs may not need submodules but for now our CMakeLists.txt
|
|
|
|
# systemically downloads them anyway when missing at build time. Easier
|
|
|
|
# and cleaner to clone everything at once.
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
doxygen:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: apt get doxygen graphviz
|
|
|
|
run: sudo apt-get -y install ninja-build doxygen graphviz
|
|
|
|
|
|
|
|
- name: list all warnings, warnings are not failures
|
|
|
|
run: cmake -GNinja -S doc -B docbuild && ninja -C docbuild -v doc
|
|
|
|
|
|
|
|
# Build again (it's very quick) so warnings don't go unnoticed
|
|
|
|
- name: fail and stop on first warning
|
|
|
|
run: printf 'WARN_AS_ERROR = YES\n' >> doc/sof.doxygen.in &&
|
|
|
|
ninja -C docbuild -v doc
|
|
|
|
|
|
|
|
|
|
|
|
testbench:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-09-17 13:41:51 +08:00
|
|
|
with: {fetch-depth: 5}
|
2021-01-19 07:56:31 +08:00
|
|
|
|
2021-09-21 18:58:17 +08:00
|
|
|
- name: apt get valgrind
|
|
|
|
run: sudo apt-get update && sudo apt-get -y install valgrind
|
|
|
|
|
2021-01-19 07:56:31 +08:00
|
|
|
- name: docker
|
|
|
|
run: docker pull thesofproject/sof && docker tag thesofproject/sof sof
|
|
|
|
|
2021-09-22 02:35:04 +08:00
|
|
|
# testbench needs some topologies.
|
|
|
|
# Use our docker container to avoid the "unsupported widget type asrc"
|
|
|
|
# bug in ALSA 1.2.2
|
|
|
|
# https://github.com/thesofproject/sof/issues/2543
|
2022-04-02 05:36:11 +08:00
|
|
|
- name: build test topologies
|
|
|
|
run: ./scripts/docker-run.sh ./scripts/build-tools.sh -t ||
|
|
|
|
VERBOSE=1 NO_PROCESSORS=1 USE_XARGS=no
|
|
|
|
./scripts/docker-run.sh ./scripts/build-tools.sh -t
|
2021-09-22 02:35:04 +08:00
|
|
|
|
2021-01-19 07:56:31 +08:00
|
|
|
- name: build testbench
|
2021-09-22 02:35:04 +08:00
|
|
|
run: ./scripts/rebuild-testbench.sh
|
|
|
|
|
|
|
|
- name: run testbench
|
2021-01-19 07:56:31 +08:00
|
|
|
run: ./scripts/host-testbench.sh
|
|
|
|
|
|
|
|
|
2021-01-27 16:21:51 +08:00
|
|
|
gcc-build-only:
|
2021-01-19 07:56:31 +08:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
strategy:
|
2022-02-18 09:42:16 +08:00
|
|
|
fail-fast: false
|
2021-01-19 07:56:31 +08:00
|
|
|
matrix:
|
2022-02-18 09:42:16 +08:00
|
|
|
# Use groups to avoid spamming the web interface.
|
|
|
|
# Don't use a single big group so a single failure does not block
|
|
|
|
# all other builds.
|
2022-01-13 04:37:15 +08:00
|
|
|
platform: [imx8ulp,
|
|
|
|
sue jsl tgl,
|
|
|
|
rn,
|
|
|
|
]
|
2021-01-19 07:56:31 +08:00
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with: {fetch-depth: 0, submodules: recursive}
|
|
|
|
|
|
|
|
- name: docker
|
|
|
|
run: docker pull thesofproject/sof && docker tag thesofproject/sof sof
|
|
|
|
|
|
|
|
- name: xtensa-build-all
|
|
|
|
env:
|
|
|
|
PLATFORM: ${{ matrix.platform }}
|
|
|
|
run: ./scripts/docker-run.sh
|
|
|
|
./scripts/xtensa-build-all.sh -r ${PLATFORM}
|
|
|
|
|
|
|
|
# Warning: there is a fair amount of duplication between 'build-only'
|
|
|
|
# and 'qemu-boot' because github does not support YAML anchors as of Jan
|
|
|
|
# 2021. Defining our new actions would be overkill. Another popular
|
|
|
|
# option is to generate this file from a source with YAML anchors
|
|
|
|
# before committing it; also deemed overkill for the current amount of
|
|
|
|
# duplication.
|
|
|
|
|
2021-01-27 16:21:51 +08:00
|
|
|
qemu-boot-test:
|
2021-01-19 07:56:31 +08:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
strategy:
|
2022-02-18 09:42:16 +08:00
|
|
|
fail-fast: false
|
2021-01-19 07:56:31 +08:00
|
|
|
matrix:
|
2022-01-13 04:36:25 +08:00
|
|
|
# Compiler-based groups, see HOST= compilers in
|
|
|
|
# xtensa-build-all.sh. Pay attention to commas and whitespace.
|
|
|
|
# The main reason for these groups is to avoid the matrix
|
|
|
|
# swarming the Github web interface and burying other checks.
|
2021-01-19 07:56:31 +08:00
|
|
|
platform: [imx8 imx8x imx8m,
|
2022-01-13 04:36:25 +08:00
|
|
|
byt cht, bdw hsw, apl skl kbl, cnl icl,
|
|
|
|
]
|
2021-01-19 07:56:31 +08:00
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with: {fetch-depth: 0, submodules: recursive}
|
|
|
|
|
|
|
|
- name: turn off HAVE_AGENT
|
2021-03-23 09:29:45 +08:00
|
|
|
run: echo CONFIG_HAVE_AGENT=n >
|
|
|
|
src/arch/xtensa/configs/override/no-agent.config
|
2021-01-19 07:56:31 +08:00
|
|
|
|
|
|
|
- name: docker SOF
|
|
|
|
run: docker pull thesofproject/sof && docker tag thesofproject/sof sof
|
|
|
|
|
2021-03-23 09:29:45 +08:00
|
|
|
- name: xtensa-build-all -o no-agent
|
2021-01-19 07:56:31 +08:00
|
|
|
env:
|
|
|
|
PLATFORM: ${{ matrix.platform }}
|
|
|
|
run: ./scripts/docker-run.sh
|
2021-03-23 09:29:45 +08:00
|
|
|
./scripts/xtensa-build-all.sh -o no-agent -r ${PLATFORM}
|
2021-01-19 07:56:31 +08:00
|
|
|
|
|
|
|
- name: docker QEMU
|
|
|
|
run: docker pull thesofproject/sofqemu &&
|
|
|
|
docker tag thesofproject/sofqemu sofqemu
|
|
|
|
|
|
|
|
- name: qemu-check
|
|
|
|
env:
|
|
|
|
PLATFORM: ${{ matrix.platform }}
|
|
|
|
run: ./scripts/docker-qemu.sh
|
|
|
|
../sof.git/scripts/qemu-check.sh ${PLATFORM}
|