build_servers_cmake.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. name: Build servers with CMake
  2. # build_servers_cmake.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-latest]
  29. steps:
  30. - uses: actions/checkout@v2
  31. # Install latest CMake.
  32. - uses: lukka/get-cmake@latest
  33. - name: Create build directory
  34. run: mkdir cbuild
  35. - name: Create Unix Makefiles
  36. run: |
  37. cd cbuild
  38. cmake -G "Unix Makefiles" ..
  39. - name: Command - make
  40. run: |
  41. cd cbuild
  42. make