Skip to content

Commit

Permalink
.github: extract standalone testbench.yml from Main Actions
Browse files Browse the repository at this point in the history
Divide and Conquer.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
  • Loading branch information
marc-hb authored and lgirdwood committed Oct 24, 2022
1 parent 07d401a commit de90f55
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ on:
# 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:
Expand Down Expand Up @@ -99,31 +95,6 @@ jobs:
run: make -C sof-docs/ html SOF_DOC_BUILD="$(pwd)"/doxybuild/


testbench:
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


# This is a bit redundant with the other jobs below and with the (much
# faster!) installer[.yml] but it may differ in which platforms are
# built. This makes sure platforms without any open-source toolchain
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/testbench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
# 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

0 comments on commit de90f55

Please sign in to comment.