Skip to content

Update macros in config file #41

Update macros in config file

Update macros in config file #41

Workflow file for this run

name: Lint
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
lint:
strategy:
fail-fast: false
matrix:
standard: [ 11, 20 ]
name: "Linter [C++${{ matrix.standard }}]"
runs-on: ubuntu-20.04
steps:
- name: Install Clang
uses: egor-tensin/setup-clang@ef434b41eb33a70396fb336b1bae39c76d740c3d # v1.4
with:
version: 16
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- run: c++ -v
- name: Install Clang Tidy
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 16
sudo apt-get install -y clang-tidy-16
- name: Set reusable strings
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Configure CMake
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }} -S ${{ github.workspace }}
-DCMAKE_CXX_STANDARD=${{ matrix.standard }}
-DCMAKE_CXX_FLAGS="-stdlib=libstdc++"
-DCMAKE_CXX_COMPILER=c++
-DCMAKE_BUILD_TYPE=Release
-DIPADDRESS_ENABLE_CLANG_TIDY=ON
-DIPADDRESS_BUILD_TESTS=ON
-DIPADDRESS_BUILD_DOC=OFF
-DIPADDRESS_BUILD_PACKAGES=OFF
- name: Build
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config Release -j2