mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-06 17:44:09 +00:00
Add CodeQL
This commit is contained in:
parent
d98738db5c
commit
dd4a0c3034
29
.github/workflows/codeql.yml
vendored
Normal file
29
.github/workflows/codeql.yml
vendored
Normal file
|
@ -0,0 +1,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.0.0
|
||||||
|
|
||||||
|
- 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
|
Loading…
Reference in a new issue