Skip to content

[WIP] rvv intrinsic 1.0+ #4515

[WIP] rvv intrinsic 1.0+

[WIP] rvv intrinsic 1.0+ #4515

name: linux-x86-cpu-clang
on:
push:
branches: [master]
paths:
- '.github/workflows/linux-x86-cpu-clang.yml'
- 'toolchains/host.clang-m32.toolchain.cmake'
- 'CMakeLists.txt'
- 'cmake/**'
- 'src/*'
- 'src/layer/*'
- 'src/layer/x86/**'
- 'tests/**'
pull_request:
branches: [master]
paths:
- '.github/workflows/linux-x86-cpu-clang.yml'
- 'toolchains/host.clang-m32.toolchain.cmake'
- 'CMakeLists.txt'
- 'cmake/**'
- 'src/*'
- 'src/layer/*'
- 'src/layer/x86/**'
- 'tests/**'
concurrency:
group: linux-x86-cpu-clang-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
linux-clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: update
run: sudo apt-get update
- name: gcc-multilib
run: sudo apt-get install gcc-multilib g++-multilib
- name: build
env:
CC: clang
CXX: clang++
run: |
mkdir build && cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/host.clang-m32.toolchain.cmake -DNCNN_BUILD_TESTS=ON -DNCNN_BUILD_TOOLS=OFF -DNCNN_BUILD_EXAMPLES=OFF ..
cmake --build . -j $(nproc)
- name: test
run: cd build && ctest --output-on-failure -j $(nproc)
- name: build-shared
env:
CC: clang
CXX: clang++
run: |
mkdir build-shared && cd build-shared
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/host.clang-m32.toolchain.cmake -DNCNN_BUILD_TOOLS=OFF -DNCNN_BUILD_EXAMPLES=OFF -DNCNN_SHARED_LIB=ON ..
cmake --build . -j $(nproc)
- name: build-noint8
env:
CC: clang
CXX: clang++
run: |
mkdir build-noint8 && cd build-noint8
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/host.clang-m32.toolchain.cmake -DNCNN_BUILD_TESTS=ON -DNCNN_BUILD_TOOLS=OFF -DNCNN_BUILD_EXAMPLES=OFF -DNCNN_INT8=OFF ..
cmake --build . -j $(nproc)
- name: test-noint8
run: cd build-noint8 && ctest --output-on-failure -j $(nproc)