forked from cda-tum/mqt-core
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (40 loc) · 1.09 KB
/
reusable-code-ql.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: 📝 • CodeQL
on:
workflow_call:
inputs:
cmake-args:
description: "Additional arguments to pass to CMake"
default: ""
type: string
setup-z3:
description: "Whether to set up Z3"
default: false
type: boolean
z3-version:
description: "The version of Z3 to set up"
default: "4.11.2"
type: string
enable-cpp:
description: "Whether to enable C++ analysis"
default: true
type: boolean
enable-python:
description: "Whether to enable Python analysis"
default: true
type: boolean
jobs:
analyze-cpp:
if: ${{ inputs.enable-cpp }}
name: 🇨
uses: ./.github/workflows/reusable-code-ql-cpp.yml
with:
cmake-args: ${{ inputs.cmake-args }}
setup-z3: ${{ inputs.setup-z3 }}
z3-version: ${{ inputs.z3-version }}
analyze-python:
if: ${{ inputs.enable-python }}
name: 🐍
uses: ./.github/workflows/reusable-code-ql-python.yml
with:
setup-z3: ${{ inputs.setup-z3 }}
z3-version: ${{ inputs.z3-version }}