build_servers_clang.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. name: Build servers with Clang
  2. # build_servers_clang.yml
  3. concurrency:
  4. group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
  5. cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
  6. on:
  7. workflow_dispatch:
  8. push:
  9. branches:
  10. - master
  11. pull_request:
  12. paths:
  13. # Always trigger all Github Actions if an action or something CI related was changed
  14. - '.github/workflows/**'
  15. - 'tools/ci/**'
  16. # This workflow should run when a file in a source directory has been modified.
  17. - 'src/**'
  18. - '3rdparty/**'
  19. jobs:
  20. build:
  21. # Github Actions checks for '[ci skip]', '[skip ci]', '[no ci]', '[skip actions]', or '[actions skip]' but not a hyphenated version.
  22. # It's a catch-all incase a Pull Request has been opened and someone is on auto-pilot.
  23. if: "!contains(github.event.head_commit.message, 'ci-skip')"
  24. runs-on: ${{ matrix.os }}
  25. strategy:
  26. matrix:
  27. # The ubuntu-latest label currently points to ubuntu-24.04.
  28. # Available: ubuntu-24.04, ubuntu-22.04
  29. os: [ubuntu-22.04]
  30. # Version list can be found on https://github.com/marketplace/actions/install-clang
  31. clang: ['13','14','15','16','17','18','19','20']
  32. steps:
  33. - uses: actions/checkout@v4
  34. - name: Set up Clang
  35. uses: egor-tensin/setup-clang@v1
  36. with:
  37. version: ${{ matrix.clang }}
  38. platform: x64
  39. - name: Command - configure
  40. env:
  41. CONFIGURE_FLAGS: 'CC=clang-${{ matrix.clang }} CXX=clang++-${{ matrix.clang }} --enable-buildbot=yes'
  42. run: ./configure $CONFIGURE_FLAGS
  43. - name: Command - make clean
  44. run: make clean
  45. - name: Command - make all
  46. run: make all