branchpush.yml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. name: Test Verification
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - 0.1.0
  7. - 0.2
  8. - 0.3
  9. - 0.4
  10. - 0.5
  11. - ci_check
  12. jobs:
  13. build-ubuntu:
  14. name: Build and Test Ubuntu Latest
  15. runs-on: ubuntu-latest
  16. steps:
  17. - uses: actions/checkout@v2
  18. - name: Init submodules
  19. run: git submodule update --init --recursive
  20. - name: Build the Ubuntu Latest Docker image
  21. run: docker build . --file .ci/Dockerfile.ubuntu --tag ubuntu_debugimage:latest
  22. - name: Run tests
  23. run: docker run ubuntu_debugimage:latest ctest /build --output-on-failure
  24. build-opensuse:
  25. name: Build and Test OpenSUSE Latest
  26. runs-on: ubuntu-latest
  27. steps:
  28. - uses: actions/checkout@v2
  29. - name: Init submodules
  30. run: git submodule update --init --recursive
  31. - name: Build the OpenSUSE Latest Docker image
  32. run: docker build . --file .ci/Dockerfile.opensuse --tag opensuse_debugimage:latest
  33. - name: Run tests
  34. run: docker run opensuse_debugimage:latest ctest /build --output-on-failure
  35. build-ubuntu-static:
  36. name: Static Build and Test Ubuntu Latest
  37. runs-on: ubuntu-latest
  38. steps:
  39. - uses: actions/checkout@v2
  40. - name: Init submodules
  41. run: git submodule update --init --recursive
  42. - name: Build the Ubuntu Latest Docker image
  43. run: docker build . --file .ci/Dockerfile.ubuntu_static --tag ubuntu_debugimage_static:latest
  44. - name: Run tests
  45. run: docker run ubuntu_debugimage_static:latest ctest /build --output-on-failure
  46. build-opensuse-static:
  47. name: Static Build and Test OpenSUSE Latest
  48. runs-on: ubuntu-latest
  49. steps:
  50. - uses: actions/checkout@v2
  51. - name: Init submodules
  52. run: git submodule update --init --recursive
  53. - name: Build the OpenSUSE Latest Docker image
  54. run: docker build . --file .ci/Dockerfile.opensuse_static --tag opensuse_debugimage_static:latest
  55. - name: Run tests
  56. run: docker run opensuse_debugimage_static:latest ctest /build --output-on-failure
  57. build-windows:
  58. name: Static Build and Test Windows MSVC
  59. runs-on: windows-latest
  60. steps:
  61. - uses: actions/checkout@v2
  62. - name: Init submodules
  63. run: git submodule update --init --recursive
  64. - uses: shogo82148/actions-setup-perl@v1
  65. with:
  66. perl-version: '5.30'
  67. distribution: strawberry
  68. - uses: microsoft/setup-msbuild@v1.0.2
  69. with:
  70. vs-version: '16.4'
  71. - name: Install Deps
  72. run: |
  73. choco install wget golang
  74. mkdir C:\yasm
  75. wget -q http://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win64.exe -O C:\yasm\yasm.exe
  76. - name: Install Qt
  77. run: |
  78. wget -q https://download.qt.io/official_releases/online_installers/qt-unified-windows-x86-online.exe -O C:/qt-unified-windows-x86-online.exe
  79. C:/qt-unified-windows-x86-online.exe --script ./.ci/qt_installer_windows.qs -d
  80. - name: Build in Windows
  81. run: |
  82. mkdir build-static
  83. cd build-static
  84. setx GOROOT "c:\Go"
  85. setx path "%path%;C:\Qt\5.15.2\msvc2019_64\bin;C:\Go\bin;C:\yasm"
  86. set GOROOT="c:\Go"
  87. set PATH="%PATH%;C:\Qt\5.15.2\msvc2019_64\bin;C:\Go\bin;C:\yasm"
  88. cmake -DCMAKE_PREFIX_PATH="C:\Qt\5.15.2\msvc2019_64;C:\Go\bin;C:\yasm" -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release ..
  89. cmake --build . --config Release
  90. - name: Run tests
  91. run: |
  92. cd build-static
  93. ctest -C Release -E grpc --output-on-failure