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.

46 lines
1.1 KiB

2 months ago
  1. name: build-and-test-min-cmake
  2. on:
  3. push:
  4. branches: [ main ]
  5. pull_request:
  6. branches: [ main ]
  7. jobs:
  8. job:
  9. name: ${{ matrix.os }}.min-cmake
  10. runs-on: ${{ matrix.os }}
  11. strategy:
  12. fail-fast: false
  13. matrix:
  14. os: [ubuntu-latest, macos-latest]
  15. steps:
  16. - uses: actions/checkout@v3
  17. - uses: lukka/get-cmake@latest
  18. with:
  19. cmakeVersion: 3.10.0
  20. - name: create build environment
  21. run: cmake -E make_directory ${{ runner.workspace }}/_build
  22. - name: setup cmake initial cache
  23. run: touch compiler-cache.cmake
  24. - name: configure cmake
  25. env:
  26. CXX: ${{ matrix.compiler }}
  27. shell: bash
  28. working-directory: ${{ runner.workspace }}/_build
  29. run: >
  30. cmake -C ${{ github.workspace }}/compiler-cache.cmake
  31. $GITHUB_WORKSPACE
  32. -DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON
  33. -DCMAKE_CXX_VISIBILITY_PRESET=hidden
  34. -DCMAKE_VISIBILITY_INLINES_HIDDEN=ON
  35. - name: build
  36. shell: bash
  37. working-directory: ${{ runner.workspace }}/_build
  38. run: cmake --build .