build_servers_clang.yml 1.7 KB

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