2024-08-09 23:02:44 +08:00
|
|
|
when:
|
|
|
|
- event:
|
|
|
|
- push
|
|
|
|
- pull_request
|
2024-08-09 23:15:17 +08:00
|
|
|
- path:
|
|
|
|
include:
|
|
|
|
- ".woodpecker/linux-x64-gcc.yml"
|
|
|
|
- "cmake/**"
|
|
|
|
- "third_party/**"
|
|
|
|
- "tile/**"
|
|
|
|
- "CMakeLists.txt"
|
2024-08-09 23:02:44 +08:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
BUILD_TYPE:
|
|
|
|
- Debug
|
|
|
|
- Release
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: linux-x64-gcc-build
|
|
|
|
image: art.uocat.com/docker/tqcq/cross:v1.0.1
|
|
|
|
commands:
|
|
|
|
- mkdir build
|
|
|
|
- cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DTILE_BUILD_BENCHMARKS=ON -DTILE_BUILD_TESTS=ON
|
|
|
|
- cmake --build build -j $(nproc)
|
|
|
|
|
|
|
|
- name: linux-x64-gcc-test
|
|
|
|
image: art.uocat.com/docker/tqcq/cross:v1.0.1
|
|
|
|
commands:
|
|
|
|
- cd build
|
|
|
|
- ctest --output-on-failure -j $(nproc)
|
|
|
|
|
|
|
|
- name: linux-x64-gcc-benchmark
|
|
|
|
image: art.uocat.com/docker/tqcq/cross:v1.0.1
|
|
|
|
commands:
|
|
|
|
- ./build/bin/tile_bm_all
|
|
|
|
|
|
|
|
|