1---
2name: User space tools/ directory
3
4# 'workflow_dispatch' allows running this workflow manually from the
5# 'Actions' tab
6
7# yamllint disable-line rule:truthy
8on: [pull_request, workflow_dispatch]
9
10jobs:
11  # This is not the same as building every ./build-tools.sh option.
12  top-level_default_CMake_target_ALL:
13    runs-on: ubuntu-latest
14    steps:
15      - uses: actions/checkout@v2
16
17      # The ALSA version in Ubuntu 20.04 is buggy
18      # (https://github.com/thesofproject/sof/issues/2543) and likely
19      # getting out of date soon
20      - name: docker
21        run: docker pull thesofproject/sof && docker tag thesofproject/sof sof
22
23      # For some reason gcc has more warnings in Release mode
24      - name: build-tools
25        run: CMAKE_BUILD_TYPE=Release ./scripts/docker-run.sh
26          ./scripts/build-tools.sh
27