Skip to content

Commit

Permalink
Use preinstalled clang tools (#10)
Browse files Browse the repository at this point in the history
* Move linter jobs to `[email protected]`

* Install libsqlite3-dev to clang-tidy job

* Disable CI on this branch
  • Loading branch information
bugdea1er authored May 22, 2024
1 parent 12d7861 commit 2095f5e
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,39 +7,24 @@ on:

jobs:
check-format:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.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
runs-on: ubuntu-24.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
run: sudo apt-get install libfmt-dev libpq-dev libsqlite3-dev

- name: Configure CMake
run: cmake -B ${{ env.build_dir }} -S ${{ github.workspace }} -DPFR_ORM_TEST:BOOL=ON
Expand Down

0 comments on commit 2095f5e

Please sign in to comment.