mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
34 lines
758 B
YAML
34 lines
758 B
YAML
|
name: "CodeQL Scanning"
|
||
|
|
||
|
on:
|
||
|
schedule:
|
||
|
- cron: '0 19 * * *'
|
||
|
jobs:
|
||
|
CodeQL-Build:
|
||
|
|
||
|
runs-on: self-hosted
|
||
|
timeout-minutes: 1440
|
||
|
|
||
|
steps:
|
||
|
- name: Checkout repository
|
||
|
uses: actions/checkout@v2
|
||
|
with:
|
||
|
fetch-depth: 2
|
||
|
submodules: 'recursive'
|
||
|
|
||
|
- run: git checkout HEAD^2
|
||
|
if: ${{ github.event_name == 'pull_request' }}
|
||
|
|
||
|
- name: Initialize CodeQL
|
||
|
uses: github/codeql-action/init@v1
|
||
|
|
||
|
with:
|
||
|
languages: cpp
|
||
|
|
||
|
- run: sudo apt-get update && sudo apt-get install -y git cmake python ninja-build gcc-9 g++-9 && mkdir build
|
||
|
- run: cd build && CC=gcc-9 CXX=g++-9 cmake ..
|
||
|
- run: cd build && ninja
|
||
|
|
||
|
- name: Perform CodeQL Analysis
|
||
|
uses: github/codeql-action/analyze@v1
|