|
29 | 29 | workflow_call: |
30 | 30 |
|
31 | 31 | jobs: |
32 | | - |
33 | | - build-run: |
34 | | - runs-on: ubuntu-22.04 |
| 32 | + build-and-test: |
| 33 | + runs-on: ubuntu-24.10 |
35 | 34 |
|
36 | 35 | steps: |
37 | | - - uses: actions/checkout@v4 |
38 | | - with: {fetch-depth: 0, filter: 'tree:0'} |
39 | | - |
40 | | - - name: docker |
41 | | - run: docker pull thesofproject/sof && docker tag thesofproject/sof sof |
| 36 | + - name: Checkout SOF repository (PR source) |
| 37 | + uses: actions/checkout@v4 |
| 38 | + with: |
| 39 | + path: sof |
42 | 40 |
|
43 | 41 | - name: apt get |
44 | 42 | run: sudo apt-get update && |
45 | | - sudo apt-get -y install valgrind alsa-utils libasound2-dev ninja-build |
46 | | - octave octave-signal |
| 43 | + sudo apt-get -y install valgrind ninja-build |
| 44 | + octave octave-signal automake autoconf libtool |
| 45 | + gettext linux-headers-6.11.0-8 |
| 46 | + |
| 47 | + - name: Build Alsa-lib |
| 48 | + run: | |
| 49 | + cd ${GITHUB_WORKSPACE} |
| 50 | + git clone https://github.com/thesofproject/alsa-lib.git |
| 51 | + cd alsa-lib |
| 52 | + git checkout df8f1cc1ec9d9ee15be5e2c23ad25b9389fd8766 -b build |
| 53 | + ./gitcompile --prefix=${GITHUB_WORKSPACE}/tools |
| 54 | + make install |
| 55 | +
|
| 56 | + - name: Build Alsa-utils |
| 57 | + run: | |
| 58 | + cd ${GITHUB_WORKSPACE} |
| 59 | + git clone https://github.com/thesofproject/alsa-utils.git |
| 60 | + cd alsa-utils |
| 61 | + git checkout 0ffa105942a06cdfa98e5918b8dc82e3cac12792 -b build |
| 62 | + ./gitcompile --prefix=${GITHUB_WORKSPACE}/tools \ |
| 63 | + --with-alsa-prefix=${GITHUB_WORKSPACE}/tools \ |
| 64 | + --with-alsa-inc-prefix=${GITHUB_WORKSPACE}/tools/include \ |
| 65 | + --with-sysroot=${GITHUB_WORKSPACE}/tools \ |
| 66 | + --with-udev-rules-dir=${GITHUB_WORKSPACE}/tools \ |
| 67 | + PKG_CONFIG_PATH=${GITHUB_WORKSPACE}/tools \ |
| 68 | + LDFLAGS=-L${GITHUB_WORKSPACE}/tools/lib \ |
| 69 | + --disable-old-symbols \ |
| 70 | + --enable-alsatopology \ |
| 71 | + --with-asound-state-dir=${GITHUB_WORKSPACE}/tools/var/lib/alsa \ |
| 72 | + --with-systemdsystemunitdir=${GITHUB_WORKSPACE}/tools/lib/systemd/system |
| 73 | + make install |
47 | 74 |
|
48 | 75 | # testbench needs some topologies. |
49 | 76 | - name: build test topologies |
50 | | - run: CMAKE_BUILD_TYPE=Release ./scripts/docker-run.sh |
51 | | - ./scripts/build-tools.sh -Y || |
| 77 | + run: | |
| 78 | + CMAKE_BUILD_TYPE=Release ./sof/scripts/build-tools.sh -Y || |
52 | 79 | VERBOSE=1 NO_PROCESSORS=1 USE_XARGS=no |
53 | | - CMAKE_BUILD_TYPE=Release ./scripts/docker-run.sh |
54 | | - ./scripts/build-tools.sh -Y |
| 80 | + CMAKE_BUILD_TYPE=Release ./sof/scripts/build-tools.sh -Y |
55 | 81 |
|
| 82 | + # build testbench |
56 | 83 | - name: build testbench |
57 | | - run: ./scripts/rebuild-testbench.sh || |
58 | | - ./scripts/rebuild-testbench.sh -j 1 |
| 84 | + run: | |
| 85 | + ./sof/scripts/rebuild-testbench.sh || |
| 86 | + ./sof/scripts/rebuild-testbench.sh -j 1 |
59 | 87 |
|
| 88 | + # run testbench |
60 | 89 | - name: run testbench |
61 | | - run: ./scripts/host-testbench.sh |
| 90 | + run: | |
| 91 | + ./sof/scripts/host-testbench.sh |
0 commit comments