Repository navigation
audio: src: use size_t for processing counts and unsigned channel counts #18639
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| 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] | |
| permissions: | |
| contents: read | |
| # Group workflows together to cancel outdated runs, do not cancel manual runs | |
| concurrency: | |
| group: "${{ github.workflow }}-${{ github.event_name }}-\ | |
| ${{ github.event_name == 'pull_request' && github.ref || github.run_id }}" | |
| cancel-in-progress: true | |
| jobs: | |
| # This is not the same as building every ./build-tools.sh option. | |
| top-level_default_CMake_target_ALL: | |
| runs-on: ubuntu-26.04 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| filter: 'tree:0' | |
| path: sof | |
| - name: apt get | |
| run: sudo apt-get update && | |
| sudo apt-get -y install ninja-build | |
| automake autoconf libtool gettext libasound2-dev | |
| pkg-config | |
| # Ubuntu 24.04 ships autoconf 2.71, but current alsa-lib/alsa-utils | |
| # require >= 2.72. Build a newer autoconf from the GNU release | |
| # tarball and install it into /usr/local (ahead of /usr/bin in PATH). | |
| - name: Install autoconf 2.72 | |
| run: | | |
| cd ${GITHUB_WORKSPACE} | |
| wget -q https://ftp.gnu.org/gnu/autoconf/autoconf-2.72.tar.gz | |
| tar xf autoconf-2.72.tar.gz | |
| cd autoconf-2.72 | |
| ./configure --prefix=/usr/local | |
| make -j"$(nproc)" | |
| sudo make install | |
| hash -r | |
| autoconf --version | head -n1 | |
| - name: Build Alsa-lib | |
| run: | | |
| cd ${GITHUB_WORKSPACE} | |
| git clone https://github.com/thesofproject/alsa-lib.git | |
| cd alsa-lib | |
| git checkout 08b532cd3da9ac8f683bcb4e4beb9b74c39c1782 -b build | |
| ./gitcompile --prefix=${GITHUB_WORKSPACE}/tools | |
| make install | |
| - name: Build Alsa-utils | |
| run: | | |
| cd ${GITHUB_WORKSPACE} | |
| git clone https://github.com/thesofproject/alsa-utils.git | |
| cd alsa-utils | |
| git checkout 9feb22ba45b48729729c8d194aaf1bc082a6842a -b build | |
| ./gitcompile --prefix=${GITHUB_WORKSPACE}/tools \ | |
| --with-alsa-prefix=${GITHUB_WORKSPACE}/tools \ | |
| --with-alsa-inc-prefix=${GITHUB_WORKSPACE}/tools/include \ | |
| --with-sysroot=${GITHUB_WORKSPACE}/tools \ | |
| --with-udev-rules-dir=${GITHUB_WORKSPACE}/tools \ | |
| PKG_CONFIG_PATH=${GITHUB_WORKSPACE}/tools \ | |
| LDFLAGS=-L${GITHUB_WORKSPACE}/tools/lib \ | |
| --disable-old-symbols \ | |
| --enable-alsatopology \ | |
| --with-asound-state-dir=${GITHUB_WORKSPACE}/tools/var/lib/alsa \ | |
| --with-systemdsystemunitdir=${GITHUB_WORKSPACE}/tools/lib/systemd/system | |
| make install | |
| # For some reason gcc has more warnings in Release mode | |
| - name: build-tools | |
| env: | |
| PKG_CONFIG_PATH: ${{ github.workspace }}/tools/lib/pkgconfig | |
| LD_LIBRARY_PATH: ${{ github.workspace }}/tools/lib | |
| PATH: ${{ github.workspace }}/tools/bin:/usr/local/bin:/usr/bin:/bin | |
| run: CMAKE_BUILD_TYPE=Release ./sof/scripts/build-tools.sh || | |
| VERBOSE=1 NO_PROCESSORS=1 USE_XARGS=no | |
| CMAKE_BUILD_TYPE=Release ./sof/scripts/build-tools.sh |