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

41 lines
1016 B
YAML
Raw Normal View History

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 ]
schedule:
- cron: '0 17 * * 5'
2022-11-12 10:34:51 +00:00
jobs:
build:
2024-01-08 16:53:22 +00:00
strategy:
matrix:
os: [ubuntu-latest, ubuntu-20.04]
runs-on: ${{ matrix.os }}
2022-11-12 10:34:51 +00:00
env:
BUILD_TYPE: Release
steps:
- uses: actions/checkout@v4
2022-11-12 10:34:51 +00:00
- name: Install APT dependencies
2024-04-23 14:36:21 +00:00
run: |
sudo apt update
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