-
Notifications
You must be signed in to change notification settings - Fork 6
56 lines (48 loc) · 1.67 KB
/
codeql-analysis.yaml
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
name: "CodeQL"
on:
push:
branches: [ "master" ]
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '10 1 * * *' # Every 10:10 AM KST
jobs:
analyze:
name: Analyze
runs-on: ubuntu-20.04
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Install dependency packages
run: |
sudo add-apt-repository -y ppa:nugulinux/sdk
sudo apt update
sudo apt-get install -y cmake libglib2.0-dev libssl-dev \
zlib1g-dev libasound2-dev portaudio19-dev libopus-dev \
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
libcurl4-openssl-dev \
rapidjson-dev libnugu-epd-dev libnugu-kwd-dev
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: 'c-cpp'
- name: Configure
run: cmake -S . -B build -DENABLE_BUILTIN_CURL=OFF
- name: Build
run: cmake --build build --parallel
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3