|
6 | 6 | branches: |
7 | 7 | - '**' |
8 | 8 | - '!main' |
9 | | - - '!feature' |
10 | 9 | paths-ignore: |
11 | 10 | - '**.md' |
12 | | - - '.github/patches/duckdb-wasm/**' |
13 | 11 | - '.github/workflows/**' |
14 | | - - '!.github/workflows/lcov_exclude' |
15 | 12 | - '!.github/workflows/CodeQuality.yml' |
16 | 13 |
|
17 | 14 | pull_request: |
18 | 15 | types: [opened, reopened, ready_for_review, synchronize] |
19 | 16 | paths-ignore: |
20 | 17 | - '**.md' |
21 | 18 | - '.github/workflows/**' |
22 | | - - '!.github/workflows/lcov_exclude' |
23 | 19 | - '!.github/workflows/CodeQuality.yml' |
24 | 20 |
|
25 | | -concurrency: |
26 | | - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }}-${{ github.ref != 'refs/heads/main' || github.sha }} |
27 | | - cancel-in-progress: true |
28 | | - |
29 | | -env: |
30 | | - GH_TOKEN: ${{ secrets.GH_TOKEN }} |
31 | | - |
32 | 21 | jobs: |
33 | 22 | format-check: |
34 | 23 | name: Format Check |
35 | | - runs-on: ubuntu-22.04 |
36 | | - if: ${{ !(github.event_name == 'pull_request' && github.head_ref == 'vendoring') }} |
37 | | - |
38 | | - env: |
39 | | - CC: gcc-10 |
40 | | - CXX: g++-10 |
41 | | - GEN: ninja |
| 24 | + runs-on: ubuntu-latest |
| 25 | + if: ${{ !(github.event_name == 'pull_request' && startsWith(github.head_ref, 'vendoring-')) }} |
42 | 26 |
|
43 | 27 | steps: |
44 | 28 | - uses: actions/checkout@v4 |
45 | | - with: |
46 | | - fetch-depth: 0 |
47 | 29 |
|
48 | 30 | - name: Install |
49 | | - shell: bash |
50 | 31 | run: | |
51 | | - sudo apt-get update -y -qq |
52 | | - sudo apt-get install -y -qq ninja-build clang-format-11 |
53 | | - sudo pip3 install cmake-format black clang_format==11.0.1 |
| 32 | + sudo pip3 install \ |
| 33 | + black==25.1.0 \ |
| 34 | + clang_format==11.0.1 \ |
| 35 | + cmake-format==0.6.13 |
54 | 36 |
|
55 | 37 | - name: Format Check |
56 | | - shell: bash |
57 | 38 | run: | |
| 39 | + python -m pip show black |
| 40 | + python -m pip show cmake_format |
| 41 | + python -m pip show clang_format |
58 | 42 | clang-format --version |
59 | 43 | clang-format --dump-config |
60 | | - black --version |
61 | 44 | make format-check-silent |
62 | | -
|
63 | | -# tidy-check: |
64 | | -# name: Tidy Check |
65 | | -# runs-on: ubuntu-22.04 |
66 | | -# needs: format-check |
67 | | -# |
68 | | -# env: |
69 | | -# CC: gcc-10 |
70 | | -# CXX: g++-10 |
71 | | -# GEN: ninja |
72 | | -# TIDY_THREADS: 4 |
73 | | -# |
74 | | -# steps: |
75 | | -# - uses: actions/checkout@v4 |
76 | | -# with: |
77 | | -# fetch-depth: 0 |
78 | | -# |
79 | | -# - name: Install |
80 | | -# shell: bash |
81 | | -# run: sudo apt-get update -y -qq && sudo apt-get install -y -qq ninja-build clang-tidy && sudo pip3 install pybind11[global] |
82 | | -# |
83 | | -# - name: Setup Ccache |
84 | | -# uses: hendrikmuhs/ccache-action@main |
85 | | -# with: |
86 | | -# key: ${{ github.job }} |
87 | | -# save: ${{ github.ref == 'refs/heads/main' || github.repository != 'duckdb/duckdb' }} |
88 | | -# - name: Download clang-tidy-cache |
89 | | -# shell: bash |
90 | | -# run: | |
91 | | -# set -e |
92 | | -# curl -Lo /tmp/clang-tidy-cache https://github.com/ejfitzgerald/clang-tidy-cache/releases/download/v0.4.0/clang-tidy-cache-linux-amd64 |
93 | | -# md5sum /tmp/clang-tidy-cache | grep 880b290d7bbe7c1fb2a4f591f9a86cc1 |
94 | | -# chmod +x /tmp/clang-tidy-cache |
95 | | -# |
96 | | -# - name: Tidy Check |
97 | | -# shell: bash |
98 | | -# run: make tidy-check TIDY_BINARY=/tmp/clang-tidy-cache |
0 commit comments