macos.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Build and run tests on the Mac OS x64 platform
  2. name: macos
  3. on:
  4. push:
  5. branches: arch
  6. pull_request:
  7. branches: arch
  8. jobs:
  9. build:
  10. name: Build and test
  11. runs-on: macos-latest
  12. strategy:
  13. matrix:
  14. include:
  15. - BUILD_TYPE: Release
  16. BUILD_FAST: OFF
  17. BASH_PLATFORM: BASH_64
  18. CC: gcc
  19. - BUILD_TYPE: Release
  20. BUILD_FAST: OFF
  21. BASH_PLATFORM: BASH_64
  22. CC: clang
  23. steps:
  24. - name: Get source
  25. uses: actions/checkout@v3
  26. - name: Install dependencies on macos
  27. run: |
  28. brew install cmake gcc
  29. cmake --version
  30. gcc --version
  31. clang --version
  32. - name: Configure CMake
  33. run: >
  34. CC=${{matrix.CC}} cmake -B ${{github.workspace}}/build
  35. -DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}}
  36. -DBUILD_FAST=${{matrix.BUILD_FAST}}
  37. -DBASH_PLATFORM=${{matrix.BASH_PLATFORM}}
  38. - name: Build
  39. run: cmake --build ${{github.workspace}}/build
  40. - name: Test
  41. working-directory: ${{github.workspace}}/build
  42. run: ctest --verbose
  43. - name: Test bee2cmd
  44. working-directory: ${{github.workspace}}/build/cmd
  45. run: cp ../../cmd/test/* . && ./test.sh
  46. shell: bash