forked from dogecoinfoundation/libdogecoin
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·69 lines (59 loc) · 1.54 KB
/
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
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
# codeql gh-actions file
name: CodeQL
on:
push:
branches:
- '*-dev-*'
- 'main'
pull_request:
# The branches below must be a subset of the branches above
branches:
- '*-dev-*'
paths-ignore:
- '**/*.md'
- '**/*.txt'
- 'contrib/**'
- 'doc/**'
jobs:
analyze:
name: analyze
runs-on: ubuntu-20.04
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp', 'python', 'go' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: update system
run: |
sudo apt-get update --yes
sudo apt-get install -y autoconf automake libtool-bin libevent-dev build-essential python3
- name: Dependency cache
uses: actions/cache@v3
env:
cache-name: depends
with:
path: ./depends/built
key: codeql-${{ env.cache-name }}-${{ hashFiles('depends/packages/*') }}
- name: Build depends
run: |
pushd depends
make -j4 HOST=x86_64-pc-linux-gnu
popd
- name: init codeql
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: build libdogecoin
run: |
./autogen.sh
./configure --prefix=`pwd`/depends/x86_64-pc-linux-gnu
make check -j3 VERBOSE=1
- name: perform codeql analysis
uses: github/codeql-action/analyze@v2