Fix/compile on ubuntu 20.04 #123
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'build' | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, ubuntu-20.04] | |
runs-on: ${{ matrix.os }} | |
env: | |
BUILD_TYPE: Release | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install APT dependencies | |
run: sudo apt install libfuse3-dev libwebsockets-dev libgtest-dev libgmock-dev clang-tidy valgrind | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
- name: Unit Test | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target test | |
- name: Memcheck | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target memcheck |