build_tests.yml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. name: Build Tests
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - release/v1.5
  7. pull_request:
  8. branches:
  9. - master
  10. - release/v1.5
  11. jobs:
  12. build_hpmicro:
  13. runs-on: ubuntu-latest
  14. steps:
  15. - name: Checkout repository
  16. uses: actions/checkout@v3
  17. - name: Install dependencies
  18. run: sudo apt-get update && sudo apt-get install -y cmake ninja-build
  19. - name: Download hpm_sdk
  20. run: |
  21. cd ~
  22. git clone https://github.com/hpmicro/hpm_sdk.git
  23. - name: Download RISC-V toolchain
  24. run: |
  25. cd ~
  26. wget https://github.com/hpmicro/riscv-gnu-toolchain/releases/download/2023.10.18/rv32imac_zicsr_zifencei_multilib_b_ext-linux.tar.gz
  27. tar -xzf rv32imac_zicsr_zifencei_multilib_b_ext-linux.tar.gz
  28. - name: Build hpm demo
  29. run: |
  30. cd tests/hpmicro
  31. export HPM_SDK_BASE=~/hpm_sdk
  32. export GNURISCV_TOOLCHAIN_PATH=~/rv32imac_zicsr_zifencei_multilib_b_ext-linux
  33. export HPM_SDK_TOOLCHAIN_VARIANT=
  34. cmake -S . -B build -GNinja -DBOARD=hpm6800evk -DHPM_BUILD_TYPE=flash_sdram_xip -DCMAKE_BUILD_TYPE=debug -DEXTRA_C_FLAGS="-Werror";cmake --build build
  35. build_bouffalolab:
  36. runs-on: ubuntu-latest
  37. steps:
  38. - name: Checkout repository
  39. uses: actions/checkout@v3
  40. - name: Install dependencies
  41. run: sudo apt-get update && sudo apt-get install -y cmake make
  42. - name: Download bouffalo_sdk
  43. run: |
  44. cd ~
  45. git clone https://github.com/bouffalolab/bouffalo_sdk.git
  46. - name: Download RISC-V toolchain
  47. run: |
  48. cd ~
  49. git clone https://github.com/bouffalolab/toolchain_gcc_t-head_linux.git
  50. - name: Build bouffalo demo
  51. run: |
  52. cd tests/bouffalolab
  53. export BL_SDK_BASE=~/bouffalo_sdk
  54. export PATH=~/toolchain_gcc_t-head_linux/bin:$PATH
  55. make CHIP=bl616 BOARD=bl616dk -j12
  56. build_espressif:
  57. strategy:
  58. matrix:
  59. idf_ver: ["latest"]
  60. runs-on: ubuntu-latest
  61. container: espressif/idf:${{ matrix.idf_ver }}
  62. steps:
  63. - uses: actions/checkout@v3
  64. with:
  65. submodules: 'recursive'
  66. - name: Build espressif demo
  67. shell: bash
  68. run: |
  69. . ${IDF_PATH}/export.sh
  70. pip install idf-component-manager ruamel.yaml idf-build-apps --upgrade
  71. idf-build-apps build -p ./tests/espressif --recursive --target esp32s3