-
Notifications
You must be signed in to change notification settings - Fork 321
57 lines (46 loc) · 1.87 KB
/
tools.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
name: User space tools/ directory
# 'workflow_dispatch' allows running this workflow manually from the
# 'Actions' tab
# yamllint disable-line rule:truthy
on: [pull_request, workflow_dispatch, workflow_call]
jobs:
# This is not the same as building every ./build-tools.sh option.
top-level_default_CMake_target_ALL:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
filter: 'tree:0'
# The ALSA version in Ubuntu 20.04 is buggy
# (https://github.com/thesofproject/sof/issues/2543) and likely
# getting out of date soon
- name: docker
run: docker pull thesofproject/sof && docker tag thesofproject/sof sof
# For some reason gcc has more warnings in Release mode
- name: build-tools
run: CMAKE_BUILD_TYPE=Release ./scripts/docker-run.sh
./scripts/build-tools.sh ||
VERBOSE=1 NO_PROCESSORS=1 USE_XARGS=no
CMAKE_BUILD_TYPE=Release ./scripts/docker-run.sh
./scripts/build-tools.sh
SOF-alsa-plugin:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with: {filter: 'tree:0'}
- name: apt install
run: sudo apt-get update;
sudo apt-get -y install ninja-build libasound2-dev
# One space character is enough to detect most quoting issues
- name: configure
run: cmake -B 'build plugin' -S tools/plugin
-GNinja -Wdev -Werror=dev --warn-uninitialized
# Retry with -j1 in case of error because parallel builds drown error
# messages.
- name: build ExternalProjects first to avoid build race condition
run: cmake --build 'build plugin' -- sof_ep parser_ep ||
cmake --build 'build plugin' -- sof_ep parser_ep -j1
- name: Remaining build steps
run: cmake --build 'build plugin' ||
cmake --build 'build plugin' -j1