windows.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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: Add path to MinGW
  22. run: |
  23. $env:PATH = "C:\msys64\usr\bin;$env:PATH"
  24. - name: Get CMake
  25. uses: symbitic/install-cmake@master
  26. - name: Configure CMake
  27. run: >
  28. cmake -B ${{github.workspace}}/build
  29. -DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}}
  30. -DBUILD_FAST=${{matrix.BUILD_FAST}}
  31. -DBASH_PLATFORM=${{matrix.BASH_PLATFORM}} -G "MinGW Makefiles"
  32. - name: Build
  33. run: cmake --build ${{github.workspace}}/build
  34. - name: Test
  35. working-directory: ${{github.workspace}}/build
  36. run: ctest --verbose
  37. - name: Test bee2cmd
  38. working-directory: ${{github.workspace}}/build/cmd
  39. run: cp ../../cmd/test/* . && ./test.sh
  40. shell: bash