You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.6 KiB

  1. name: build
  2. on:
  3. push:
  4. pull_request:
  5. jobs:
  6. install_pa_sources:
  7. name: install PA sources
  8. runs-on: ubuntu-latest
  9. steps:
  10. # Set steps.os.outputs.image to the specific OS (e.g. 'ubuntu20')
  11. # see https://github.com/actions/cache/issues/543
  12. - name: Get operating system name and version.
  13. id: os
  14. run: echo "::set-output name=image::$ImageOS"
  15. shell: bash
  16. - uses: actions/checkout@v2
  17. - name: Cache pulseaudio source
  18. uses: actions/cache@v2
  19. env:
  20. cache-name: cache-pulseaudio-src
  21. with:
  22. path: ~/pulseaudio.src
  23. key: ${{ steps.os.outputs.image }}-build-${{ env.cache-name }}
  24. - run: scripts/install_pulseaudio_sources_apt.sh
  25. build:
  26. strategy:
  27. fail-fast: false
  28. matrix:
  29. include:
  30. - CC: gcc
  31. - CC: clang
  32. name: build with ${{ matrix.CC }}
  33. runs-on: ubuntu-latest
  34. needs: install_pa_sources
  35. env:
  36. CC: ${{ matrix.CC }}
  37. CFLAGS: -Wall -Wextra -Werror
  38. steps:
  39. - name: Get operating system name and version.
  40. id: os
  41. run: echo "::set-output name=image::$ImageOS"
  42. shell: bash
  43. - name: Fetch pulseaudio sources
  44. uses: actions/cache@v2
  45. env:
  46. cache-name: cache-pulseaudio-src
  47. with:
  48. path: ~/pulseaudio.src
  49. key: ${{ steps.os.outputs.image }}-build-${{ env.cache-name }}
  50. - uses: actions/checkout@v2
  51. - run: sudo apt-get update
  52. - run: sudo apt-get -yq install build-essential libpulse-dev
  53. - run: ./bootstrap
  54. - run: ./configure PULSE_DIR=~/pulseaudio.src
  55. - run: make