Use clang-tidy hints #143
Workflow file for this run
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: CMake Build Matrix | |
on: [push, pull_request] | |
env: | |
CMAKE_VERSION: 3.26 | |
NINJA_VERSION: 1.11.1 | |
BUILD_TYPE: Release | |
CCACHE_VERSION: 4.7.3 | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
jobs: | |
macos-native-x86_64: | |
name: 'macOS 13' | |
# Use latest image, but hardcode version to avoid silent upgrades (and breaks). | |
# See: https://github.com/actions/runner-images#available-images. | |
runs-on: macos-13 # Use M1 once available https://github.com/github/roadmap/issues/528 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Clang version | |
run: clang --version | |
- name: cmake version | |
run: cmake -version | |
- name: install docker | |
run: | | |
brew install colima docker | |
colima start | |
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock | |
- name: docker version | |
run: docker ps | |
- name: Install Homebrew packages | |
run: | | |
brew install cmake boost spdlog nlohmann-json llvm curl | |
ln -s "$(brew --prefix llvm)/bin/clang-format" "/usr/local/bin/clang-format" | |
ln -s "$(brew --prefix llvm)/bin/clang-tidy" "/usr/local/bin/clang-tidy" | |
ln -s "$(brew --prefix llvm)/bin/clang-apply-replacements" "/usr/local/bin/clang-apply-replacements" | |
- name: Build CMAKE directory | |
run: | | |
echo log include | |
ls /usr/local/include/boost | grep url | |
echo log cellar | |
ls /usr/local/Cellar/boost/1.82.0_1/include/boost | grep url | |
pwd | |
ls | |
cmake -DCMAKE_BUILD_TYPE=Debug -S . -B build | |
cmake --build build | |
cmake --build build -t test | |
build: | |
name: "Ubuntu" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Create build directory and run CMake | |
run: | | |
sudo apt-get -y update | |
sudo apt-get install build-essential cmake g++-10 gcc-10 libgtest-dev make libssl-dev python3-dev autotools-dev libicu-dev libbz2-dev libboost-all-dev libspdlog-dev nlohmann-json3-dev llvm curl libcurl4-openssl-dev | |
ls | |
g++ --version | |
cmake -DCMAKE_BUILD_TYPE=Debug -S . -B build | |
cmake --build build | |
cmake --build build -t test |