mirror of https://github.com/thesofproject/sof.git
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
|
---
|
||
|
# 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.
|
||
|
|
||
|
name: testbench
|
||
|
|
||
|
# yamllint disable-line rule:truthy
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- 'main'
|
||
|
- 'stable-**'
|
||
|
- '**-stable'
|
||
|
pull_request:
|
||
|
branches:
|
||
|
- 'main'
|
||
|
- 'stable-**'
|
||
|
- '**-stable'
|
||
|
|
||
|
# Allows you to run this workflow manually from the Actions tab
|
||
|
workflow_dispatch:
|
||
|
|
||
|
jobs:
|
||
|
|
||
|
build-run:
|
||
|
runs-on: ubuntu-22.04
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
with: {fetch-depth: 5}
|
||
|
|
||
|
- name: apt get
|
||
|
run: sudo apt-get update &&
|
||
|
sudo apt-get -y install valgrind alsa-utils libasound2-dev ninja-build
|
||
|
octave octave-io octave-signal
|
||
|
|
||
|
# testbench needs some topologies.
|
||
|
- name: build test topologies
|
||
|
run: ./scripts/build-tools.sh -t ||
|
||
|
VERBOSE=1 NO_PROCESSORS=1 USE_XARGS=no
|
||
|
./scripts/build-tools.sh -t
|
||
|
|
||
|
- name: build testbench
|
||
|
run: ./scripts/rebuild-testbench.sh
|
||
|
|
||
|
- name: run testbench
|
||
|
run: ./scripts/host-testbench.sh
|