ClickHouse/.github/workflows/codeql-analysis.yml

33 lines
736 B
YAML
Raw Normal View History

2020-12-18 20:56:11 +00:00
# See the example here: https://github.com/github/codeql-action
2020-07-03 07:57:22 +00:00
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'
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: cpp
2020-12-18 20:54:03 +00:00
- run: sudo apt-get update && sudo apt-get install -y git cmake python ninja-build gcc-10 g++-10 && mkdir build
- run: cd build && CC=gcc-10 CXX=g++-10 cmake ..
2020-07-03 07:57:22 +00:00
- run: cd build && ninja
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1