cloudflare/ClickHouse
Publicmirrored fromhttps://github.com/cloudflare/ClickHouse
.github/workflows/codeql-analysis.yml
33lines · modecode
unknown
| 1 | name: "CodeQL Scanning" |
| 2 | |
| 3 | on: |
| 4 | schedule: |
| 5 | - cron: '0 19 * * *' |
| 6 | jobs: |
| 7 | CodeQL-Build: |
| 8 | |
| 9 | runs-on: self-hosted |
| 10 | timeout-minutes: 1440 |
| 11 | |
| 12 | steps: |
| 13 | - name: Checkout repository |
| 14 | uses: actions/checkout@v2 |
| 15 | with: |
| 16 | fetch-depth: 2 |
| 17 | submodules: 'recursive' |
| 18 | |
| 19 | - run: git checkout HEAD^2 |
| 20 | if: ${{ github.event_name == 'pull_request' }} |
| 21 | |
| 22 | - name: Initialize CodeQL |
| 23 | uses: github/codeql-action/init@v1 |
| 24 | |
| 25 | with: |
| 26 | languages: cpp |
| 27 | |
| 28 | - run: sudo apt-get update && sudo apt-get install -y git cmake python ninja-build gcc-9 g++-9 && mkdir build |
| 29 | - run: cd build && CC=gcc-9 CXX=g++-9 cmake .. |
| 30 | - run: cd build && ninja |
| 31 | |
| 32 | - name: Perform CodeQL Analysis |
| 33 | uses: github/codeql-action/analyze@v1 |