-
-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (43 loc) · 1.16 KB
/
ocelot.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
name: Ocelot Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: cpp
queries: +security-and-quality
- name: Install dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libboost-dev libboost-iostreams-dev libboost-system-dev libev-dev libmysql++-dev libtcmalloc-minimal4
version: 1.0
- name: Autogen
run: ./autogen.sh
- name: Configure
run: >
./configure
--with-boost-libdir=/usr/lib/x86_64-linux-gnu
--with-ev-lib=/usr/lib/x86_64-linux-gnu
--with-mysql-lib=/usr/lib/x86_64-linux-gnu
--with-mysqlpp-lib=/usr/lib/x86_64-linux-gnu
- name: Make
run: make
- name: Make check
run: make check
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:cpp"