-
-
Notifications
You must be signed in to change notification settings - Fork 0
97 lines (82 loc) · 2.24 KB
/
codeql.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Copyright (c) 2024 Marco Fortina
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://www.opensource.org/licenses/mit-license.php.
name: "CodeQL Advanced"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '32 13 * * 1'
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: 'ubuntu-latest'
permissions:
# required for all workflows
security-events: write
# required to fetch internal or private CodeQL packs
packages: read
# only required for workflows in private repositories
actions: read
contents: read
strategy:
fail-fast: false
matrix:
include:
- language: c-cpp
build-mode: manual
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Install build tools
shell: bash
run: |
sudo apt-get install autoconf autoconf-archive autotools-dev automake build-essential cmake git libtool pkg-config
- name: Install dependencies
shell: bash
run: |
sudo apt-get install doxygen libboost-dev libcrypto++-dev
- name: Install Blake3
shell: bash
run: |
git clone https://github.com/BLAKE3-team/BLAKE3.git
cd BLAKE3
git checkout tags/1.5.4
cd c
mkdir build
cd build
cmake ..
make
sudo make install
- name: Install Liboqs
shell: bash
run: |
git clone --recurse-submodules https://github.com/open-quantum-safe/liboqs.git
cd liboqs
git checkout tags/0.11.0
mkdir build
cd build
cmake ..
make
sudo make install
- name: Build C and C++ code
shell: bash
run: |
./autogen.sh
./configure
make
make docs
make test
make distcheck
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"