Skip to content

Fuzz

Fuzz #340

Workflow file for this run

---
name: Install
on:
push:
branches:
- main
- develop
- dev/**
paths-ignore:
- '**.md'
pull_request:
branches:
- main
- develop
paths-ignore:
- '**.md'
env:
CTEST_OUTPUT_ON_FAILURE: 1
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
gcc: [12]
env:
CC: gcc-${{ matrix.gcc }}
CXX: g++-${{ matrix.gcc }}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: "**/cpm_modules"
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/third-party.cmake') }}
- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ github.workflow }}
- name: install protoc
run: |
sudo apt install -y protobuf-compiler libprotobuf-dev libgrpc++-dev protobuf-compiler-grpc
- name: build and install library
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DHPP_PROTO_TESTS=OFF
sudo cmake --build build --target install
- name: configure
run: cmake -S tutorial -B tutorial-build
- name: build
run: cmake --build tutorial-build --config Release -j4
- name: test
run: |
cd tutorial-build
ctest --build-config Release --output-on-failure