2022-04-23 02:28:59 +00:00
|
|
|
name: "CodeQL"
|
|
|
|
|
2022-04-24 00:46:13 +00:00
|
|
|
"on":
|
2022-04-23 02:28:59 +00:00
|
|
|
schedule:
|
2022-04-25 18:09:51 +00:00
|
|
|
- cron: '0 0 * * *'
|
2022-04-23 02:28:59 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
env:
|
|
|
|
CC: clang-14
|
|
|
|
CXX: clang++-14
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
name: Analyze
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2022-04-24 00:46:13 +00:00
|
|
|
language: ['cpp']
|
2022-04-23 02:28:59 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: 'true'
|
|
|
|
|
|
|
|
- name: Initialize CodeQL
|
|
|
|
uses: github/codeql-action/init@v2
|
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
2022-04-25 21:29:31 +00:00
|
|
|
sudo apt-get install -yq ninja-build
|
2022-04-23 02:28:59 +00:00
|
|
|
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake -DUSE_STATIC_LIBRARIES=0 -DSPLIT_SHARED_LIBRARIES=1 -DCLICKHOUSE_SPLIT_BINARY=1 ..
|
|
|
|
ninja
|
|
|
|
rm -rf ../contrib
|
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
2022-04-23 02:47:33 +00:00
|
|
|
uses: github/codeql-action/analyze@v2
|