Hide libpq from API #54
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: tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
check-format: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Add LLVM apt key | |
run: wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/llvm-toolchain-focal-18.asc | |
- name: Add LLVM repo | |
run: sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-18 main' | |
- name: Install new clang-format | |
run: sudo apt-get install clang-format-18 | |
- name: Check formatting | |
run: python ${{ github.workspace }}/scripts/check_format.py --clang-format=clang-format-18 | |
check-tidy: | |
runs-on: ubuntu-22.04 | |
env: | |
build_dir: ${{ github.workspace }}/build | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Add LLVM apt key | |
run: wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/llvm-toolchain-focal-18.asc | |
- name: Add LLVM repo | |
run: sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-18 main' | |
- name: Install dependencies | |
run: sudo apt-get install libfmt-dev libpq-dev clang-tidy-18 | |
- name: Configure CMake | |
run: cmake -B ${{ env.build_dir }} -S ${{ github.workspace }} | |
- name: Run clang-tidy | |
run: python ${{ github.workspace }}/scripts/tidy.py --clang-tidy=run-clang-tidy-18 --compile-commands=${{ env.build_dir }} | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-22.04 | |
env: | |
build_dir: ${{ github.workspace }}/build | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: sudo apt-get install libfmt-dev libpq-dev | |
- name: Configure CMake | |
run: cmake -B ${{ env.build_dir }} -S ${{ github.workspace }} | |
- name: Build tests | |
run: cmake --build ${{ env.build_dir }} |