TEST.yml 3.6 KB

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