TEST.yml 3.4 KB

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