mirror of
https://github.com/zinchenko291/os-course.git
synced 2026-09-14 14:05:37 +05:00
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
name: Test VT Page Cache
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
paths:
|
|
- 'lab/vtpc/**'
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
cmake_build_type:
|
|
- Asan
|
|
- Release
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: silkeh/clang:latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./lab/vtpc
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Clang Format
|
|
run: |
|
|
find . -path ./build -prune -o \
|
|
\( -iname '*.c' -o -iname '*.h' -o -iname '*.cpp' -o -iname '*.hpp' \) \
|
|
-exec clang-format --style=file --dry-run --verbose {} \;
|
|
|
|
- name: Configure
|
|
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }}
|
|
|
|
- name: Build
|
|
run: cmake --build build
|
|
|
|
- name: Clang Tidy
|
|
if: matrix.cmake_build_type == 'Release'
|
|
run: |
|
|
find . -path ./build -prune -o \
|
|
\( -iname '*.c' -o -iname '*.h' -o -iname '*.cpp' -o -iname '*.hpp' \) -exec \
|
|
clang-tidy -p ./build {} \;
|
|
|
|
- name: Test Basic
|
|
run: ./build/test/test_basic
|
|
|
|
- name: Test Sequential
|
|
run: ./build/test/test_seq
|
|
|
|
- name: Test Random
|
|
run: ./build/test/test_random |