Modified Makefile for both OS #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clang-Tidy CI | |
on: | |
# Run the workflow on every pull request to the main branch | |
pull_request: | |
branches: | |
- main | |
# Optionally, run the workflow on each push to the repository | |
push: | |
branches: | |
- main | |
jobs: | |
clang_tidy_check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up build environment | |
run: | | |
sudo apt update | |
sudo apt install -y clang-tidy cmake build-essential | |
- name: Build project | |
run: | | |
mkdir build | |
cd build | |
cmake .. | |
make | |
- name: Run Clang-Tidy | |
run: | | |
clang-tidy ../*.cpp -- -I../include -std=c++20 |