Skip to content

Switch to bazel as main buildsystem #316

Switch to bazel as main buildsystem

Switch to bazel as main buildsystem #316

Workflow file for this run

name: HyperCPU CI/CD Pipeline
on:
pull_request:
branches:
- master
jobs:
testing:
runs-on: ubuntu-latest
container: hyperwin/hcpu-ci:debian-unstable
name: Run full test suite
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: "true"
- name: Build and test with GCC on Debug profile
run: |
python3 tools/build.py -icb \
--config Debug \
--build-dir build \
-D CMAKE_CXX_COMPILER:STRING=g++ \
-D CMAKE_C_COMPILER:STRING=gcc \
--profiles-detection
cd build/Debug && ctest -V && cd ../..
python3 tools/build.py -r --config Debug --build-dir build
- name: Build and test with GCC on Release profile
run: |
python3 tools/build.py -icb \
--config Release \
--build-dir build \
-D CMAKE_CXX_COMPILER:STRING=g++ \
-D CMAKE_C_COMPILER:STRING=gcc \
--profiles-detection
cd build/Release && ctest -V && cd ../..
python3 tools/build.py -r --config Release --build-dir build
- name: Build and test with LLVM on Debug profile
run: |
python3 tools/build.py -icb \
--config Debug \
--build-dir build \
-D CMAKE_CXX_COMPILER:STRING=clang++-19 \
-D CMAKE_C_COMPILER:STRING=clang-19 \
--profiles-detection
cd build/Debug && ctest -V && cd ../..
python3 tools/build.py -r --config Debug --build-dir build
- name: Build and test with LLVM on Release profile
run: |
python3 tools/build.py -icb \
--config Release \
--build-dir build \
-D CMAKE_CXX_COMPILER:STRING=clang++-19 \
-D CMAKE_C_COMPILER:STRING=clang-19 \
--profiles-detection
cd build/Release && ctest -V && cd ../..
python3 tools/build.py -r --config Release --build-dir build
- name: Cleanup (Conan cache + leftovers in build)
run: |
rm -r build/