2022-11-12 10:34:51 +00:00
|
|
|
name: 'build'
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
2023-02-11 08:28:04 +00:00
|
|
|
branches: [ main ]
|
2022-11-12 10:34:51 +00:00
|
|
|
pull_request:
|
2023-02-11 08:28:04 +00:00
|
|
|
branches: [ main ]
|
2022-11-12 10:34:51 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
BUILD_TYPE: Release
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Install APT dependencies
|
2023-01-06 15:50:32 +00:00
|
|
|
run: sudo apt install libfuse3-dev libwebsockets-dev libgtest-dev libgmock-dev clang-tidy valgrind
|
2022-11-12 10:34:51 +00:00
|
|
|
|
|
|
|
- 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}}
|
2022-11-12 11:29:30 +00:00
|
|
|
|
|
|
|
- name: Unit Test
|
|
|
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target test
|
2022-11-12 12:32:13 +00:00
|
|
|
|
|
|
|
- name: Memcheck
|
|
|
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target memcheck
|