windows.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Build and run tests on the Windows x64 platform
  2. name: windows
  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: windows-latest
  12. strategy:
  13. matrix:
  14. include:
  15. - BUILD_TYPE: Release
  16. BUILD_FAST: OFF
  17. BASH_PLATFORM: BASH_64
  18. steps:
  19. - name: Get source
  20. uses: actions/checkout@v3
  21. - name: Set up MinGW
  22. uses: egor-tensin/setup-mingw@v2
  23. with:
  24. platform: x64
  25. - name: Get CMake
  26. uses: symbitic/install-cmake@master
  27. - name: Configure CMake
  28. run: >
  29. cmake -B ${{github.workspace}}/build
  30. -DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}}
  31. -DBUILD_FAST=${{matrix.BUILD_FAST}}
  32. -DBASH_PLATFORM=${{matrix.BASH_PLATFORM}} -G "MinGW Makefiles"
  33. - name: Build
  34. run: cmake --build ${{github.workspace}}/build
  35. - name: Test
  36. working-directory: ${{github.workspace}}/build
  37. run: ctest --verbose
  38. - name: Test bee2cmd
  39. working-directory: ${{github.workspace}}/build/cmd
  40. run: ../../cmd/test/test.sh
  41. shell: bash