Skip to content

Simplification pass; Back to CMake #3

Simplification pass; Back to CMake

Simplification pass; Back to CMake #3

Workflow file for this run

---
name: Test
on:
pull_request:
paths:
- .github/workflows/test.yml
- .clang-format
- .clang-tidy
- .clangd
- CMakeLists.txt
- include/*.h
- src/*.c
- test/CMakeLists.txt
- test/*/CMakeLists.txt
push:
paths:
- .github/workflows/test.yml
- .clang-format
- .clang-tidy
- .clangd
- CMakeLists.txt
- include/*.h
- src/*.c
- test/CMakeLists.txt
- test/*/CMakeLists.txt
workflow_dispatch:
jobs:
test_linux:
name: linux
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: |
sudo apt update && sudo apt install -y --no-install-{recommends,suggests} \
clang{,-{format,tidy}} cmake ninja-build libgc-dev libreadline-dev libasan5 libubsan1
- name: Build Ploy
env: { CC: clang, CC_LD: lld, CMAKE_GENERATOR: Ninja }
run: |
cmake -B build/ \
-DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo"\
-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE \
-DPLOY_USE_ASAN:BOOL=ON
ninja -C build/
- name: Test Ploy
run: ninja -C build/ test
- name: clang-format
run: ninja -C build/ clang-format
# TODO(jcmdln): Only in actions, clang-tidy warns about suppressed warnings
- name: clang-tidy
run: ninja -C build/ clang-tidy