branchpush.yml 3.4 KB

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