TEST.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. - name: install_google_benchmark
  25. 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
  26. - name: PULL_CORE
  27. run: cd ${{github.workspace}}/port/linux && bash pull-core.sh
  28. # - name: CHMOD
  29. # run: cd ${{github.workspace}}/port/linux/package/pikascript && chmod +x ./rust-msc-latest-linux
  30. - name: INIT
  31. run: cd ${{github.workspace}}/port/linux && bash init.sh
  32. - name: TEST
  33. # Build your program with the given configuration
  34. run: cd ${{github.workspace}}/port/linux && bash gtest.sh
  35. - name: VALGRIND
  36. run: cd ${{github.workspace}}/port/linux && bash valgrind.sh
  37. - name: BENCHMARK
  38. run: cd ${{github.workspace}}/port/linux && bash ci_benchmark.sh
  39. - name: CLEAR
  40. run: cd ${{github.workspace}}/port/linux && rm *.sh
  41. # - name: Store benchmark result
  42. # uses: benchmark-action/github-action-benchmark@v1
  43. # with:
  44. # tool: 'googlecpp'
  45. # output-file-path: ${{github.workspace}}/port/linux/benchmark_result.json
  46. # github-token: ${{ secrets.GITHUB_TOKEN }}
  47. # auto-push: true
  48. # bsp:
  49. # runs-on: windows-latest
  50. # steps:
  51. # - uses: actions/checkout@v2
  52. # - uses: ryanwinter/arm-none-eabi-gcc@v2.0.1
  53. # with:
  54. # # GNU Embedded Toolchain for Arm release name, in the V-YYYY-qZ format (e.g. "9-2019-q4")
  55. # release: '9-2019-q4'
  56. # - name: stm32f103c8-beforeMake
  57. # run: cd ${{github.workspace}}/bsp/stm32f103c8/pikascript && ./pikaPackage.exe && ./rust-msc-latest-win10.exe
  58. # # - name: stm32f103c8-make
  59. # # run: cd ${{github.workspace}}/bsp/stm32f103c8 && make
  60. # - name: stm32g030c8-beforeMake
  61. # run: cd ${{github.workspace}}/bsp/stm32g030c8/pikascript && ./pikaPackage.exe && ./rust-msc-latest-win10.exe
  62. # # - name: stm32g030c8-make
  63. # # run: cd ${{github.workspace}}/bsp/stm32g030c8 && make
  64. # - name: stm32g070cb-beforeMake
  65. # run: cd ${{github.workspace}}/bsp/stm32g070cb/pikascript && ./pikaPackage.exe && ./rust-msc-latest-win10.exe
  66. # # - name: stm32g070cb-make
  67. # # run: cd ${{github.workspace}}/bsp/stm32g070cb && make
  68. # - name: stm32g030-bootloader
  69. # run: cd ${{github.workspace}}/bsp/PikaPi_Zero/bootloader && make
  70. # packageManager-windows:
  71. # runs-on: windows-latest
  72. # steps:
  73. # - uses: actions/checkout@v2
  74. # - name: PACKAGE_MANAGER
  75. # run: cd ${{github.workspace}}/tools/pikaPackageManager && go run main.go