main.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ---
  2. name: build
  3. 'on':
  4. push:
  5. branches:
  6. - master
  7. # Allows you to run this workflow manually from the Actions tab
  8. workflow_dispatch:
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. permissions:
  13. contents: read # to fetch code (actions/checkout)
  14. container:
  15. image: ghcr.io/kamailio/pkg-kamailio-docker:${{ github.ref_name }}-${{ matrix.distribution }}
  16. credentials:
  17. username: ${{ github.actor }}
  18. password: ${{ secrets.GITHUB_TOKEN }}
  19. volumes:
  20. - ${{ github.workspace }}:/code
  21. env:
  22. DIST: ${{ matrix.distribution }}
  23. CC: ${{ matrix.compilier }}
  24. strategy:
  25. matrix:
  26. include:
  27. - distribution: bookworm
  28. compilier: gcc
  29. - distribution: bookworm
  30. compilier: clang
  31. - distribution: sid
  32. compilier: gcc
  33. - distribution: sid
  34. compilier: clang
  35. steps:
  36. - uses: actions/checkout@v4
  37. - uses: ammaraskar/[email protected]
  38. - name: build
  39. run: |
  40. cd /code
  41. ./test/travis/build_travis.sh
  42. shell: bash