aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/codeql.yml
blob: 2a046703bc038aad7211ec95387ecbc3c018d7b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: "CodeQL"

on:
  workflow_dispatch:
  schedule:
    - cron: '0 3 * * *'

jobs:
  analyze:
    name: Analyze
    runs-on: ubuntu-latest
    steps:
    - name: Install deps
      run: sudo apt-get install bison flex libreadline-dev tcl-dev libffi-dev

    - name: Checkout repository
      uses: actions/checkout@v3

    - name: Initialize CodeQL
      uses: github/codeql-action/init@v2
      with:
        languages: cpp
        queries: security-extended,security-and-quality

    - name: Build
      run: make yosys -j6

    - name: Perform CodeQL Analysis
      uses: github/codeql-action/analyze@v2