diff options
| author | sakumisu <[email protected]> | 2025-11-01 00:20:49 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2025-11-03 21:21:26 +0800 |
| commit | 0c220ea127a85ab75c84f141400a1fc532612d72 (patch) | |
| tree | 713cb45506307e05eb885cd754913150d7249b55 /.github/workflows | |
| parent | 922ff0be4245eb6202a94bae0c371bb4fd57671f (diff) | |
chore: add build ci
Signed-off-by: sakumisu <[email protected]>
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build_tests.yml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/.github/workflows/build_tests.yml b/.github/workflows/build_tests.yml new file mode 100644 index 00000000..fe51da16 --- /dev/null +++ b/.github/workflows/build_tests.yml @@ -0,0 +1,57 @@ +name: Build Tests + +on: + push: + branches: + - master + - release/v1.5 + pull_request: + branches: + - master + - release/v1.5 + +jobs: + build_hpmicro: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install -y cmake ninja-build + + - name: Download hpm_sdk + run: | + cd ~ + git clone https://github.com/hpmicro/hpm_sdk.git + + - name: Download RISC-V toolchain + run: | + cd ~ + wget https://github.com/hpmicro/riscv-gnu-toolchain/releases/download/2023.10.18/rv32imac_zicsr_zifencei_multilib_b_ext-linux.tar.gz + tar -xzf rv32imac_zicsr_zifencei_multilib_b_ext-linux.tar.gz + + - name: Build hpm demo + run: | + cd tests/hpmicro + export HPM_SDK_BASE=~/hpm_sdk + export GNURISCV_TOOLCHAIN_PATH=~/rv32imac_zicsr_zifencei_multilib_b_ext-linux + export HPM_SDK_TOOLCHAIN_VARIANT= + cmake -S . -B build -GNinja -DBOARD=hpm6750evk2 -DCMAKE_BUILD_TYPE=flash_sdram_xip -DEXTRA_C_FLAGS="-Werror";cmake --build build + + build_espressif: + strategy: + matrix: + idf_ver: ["latest"] + runs-on: ubuntu-latest + container: espressif/idf:${{ matrix.idf_ver }} + steps: + - uses: actions/checkout@v3 + with: + submodules: 'recursive' + - name: Build espressif demo + shell: bash + run: | + . ${IDF_PATH}/export.sh + pip install idf-component-manager ruamel.yaml idf-build-apps --upgrade + idf-build-apps build -p ./tests/espressif --recursive --target esp32s3
\ No newline at end of file |
