1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00
falk-werner_webfuse/.github/workflows/build.yml

34 lines
888 B
YAML
Raw Normal View History

2022-11-12 10:34:51 +00:00
name: 'build'
on:
workflow_dispatch:
push:
branches: [ main, webfuse2 ]
pull_request:
branches: [ main, webfuse2 ]
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