TEST.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. name: CI——PR
  2. on:
  3. pull_request:
  4. branches: [ master ]
  5. env:
  6. # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
  7. BUILD_TYPE: Release
  8. jobs:
  9. core:
  10. # The CMake configure and build commands are platform agnostic and should work equally
  11. # well on Windows or Mac. You can convert this to a matrix build if you need
  12. # cross-platform coverage.
  13. # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
  14. runs-on: ubuntu-latest
  15. steps:
  16. - uses: actions/checkout@v2
  17. - name: INSTALL_PACKAGE
  18. run: |
  19. sudo apt install ninja-build
  20. sudo apt install liblua5.3-dev
  21. sudo apt install valgrind
  22. sudo apt install upx
  23. sudo apt install libmbedtls-dev
  24. sudo apt install clang-tidy
  25. - name: install_google_benchmark
  26. run: git clone --branch v1.6.1 https://github.com/google/benchmark.git && cd benchmark && cmake -E make_directory "build" && cmake -E chdir "build" cmake -DBENCHMARK_DOWNLOAD_DEPENDENCIES=on -DCMAKE_BUILD_TYPE=Release ../ && cmake --build "build" --config Release && sudo cmake --build "build" --config Release --target install
  27. - name: PULL_CORE
  28. run: cd ${{github.workspace}}/port/linux && bash pull-core.sh
  29. # - name: CHMOD
  30. # run: cd ${{github.workspace}}/port/linux/package/pikascript && chmod +x ./rust-msc-latest-linux
  31. - name: INIT
  32. run: cd ${{github.workspace}}/port/linux && bash init.sh
  33. - name: TEST
  34. # Build your program with the given configuration
  35. run: cd ${{github.workspace}}/port/linux && bash gtest.sh
  36. - name: VALGRIND
  37. run: cd ${{github.workspace}}/port/linux && bash valgrind.sh
  38. - name: BENCHMARK
  39. run: cd ${{github.workspace}}/port/linux && bash ci_benchmark.sh
  40. - name: CLEAR
  41. run: cd ${{github.workspace}}/port/linux && rm *.sh
  42. # - name: Store benchmark result
  43. # uses: benchmark-action/github-action-benchmark@v1
  44. # with:
  45. # tool: 'googlecpp'
  46. # output-file-path: ${{github.workspace}}/port/linux/benchmark_result.json
  47. # github-token: ${{ secrets.GITHUB_TOKEN }}
  48. # auto-push: true
  49. # bsp:
  50. # runs-on: windows-latest
  51. # steps:
  52. # - uses: actions/checkout@v2
  53. # - uses: ryanwinter/arm-none-eabi-gcc@v2.0.1
  54. # with:
  55. # # GNU Embedded Toolchain for Arm release name, in the V-YYYY-qZ format (e.g. "9-2019-q4")
  56. # release: '9-2019-q4'
  57. # - name: stm32f103c8-beforeMake
  58. # run: cd ${{github.workspace}}/bsp/stm32f103c8/pikascript && ./pikaPackage.exe && ./rust-msc-latest-win10.exe
  59. # # - name: stm32f103c8-make
  60. # # run: cd ${{github.workspace}}/bsp/stm32f103c8 && make
  61. # - name: stm32g030c8-beforeMake
  62. # run: cd ${{github.workspace}}/bsp/stm32g030c8/pikascript && ./pikaPackage.exe && ./rust-msc-latest-win10.exe
  63. # # - name: stm32g030c8-make
  64. # # run: cd ${{github.workspace}}/bsp/stm32g030c8 && make
  65. # - name: stm32g070cb-beforeMake
  66. # run: cd ${{github.workspace}}/bsp/stm32g070cb/pikascript && ./pikaPackage.exe && ./rust-msc-latest-win10.exe
  67. # # - name: stm32g070cb-make
  68. # # run: cd ${{github.workspace}}/bsp/stm32g070cb && make
  69. # - name: stm32g030-bootloader
  70. # run: cd ${{github.workspace}}/bsp/PikaPi_Zero/bootloader && make
  71. # packageManager-windows:
  72. # runs-on: windows-latest
  73. # steps:
  74. # - uses: actions/checkout@v2
  75. # - name: PACKAGE_MANAGER
  76. # run: cd ${{github.workspace}}/tools/pikaPackageManager && go run main.go