mirror of
https://github.com/zealdocs/zeal.git
synced 2024-12-02 09:44:14 +03:00
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
name: "CodeQL Scanning"
|
|
|
|
on:
|
|
push:
|
|
branches: [master, stable]
|
|
pull_request:
|
|
# The branches below must be a subset of the branches above.
|
|
branches: [master]
|
|
schedule:
|
|
- cron: '0 8 * * 6'
|
|
|
|
jobs:
|
|
analyze-codeql:
|
|
name: Analyze
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
with:
|
|
# We must fetch at least the immediate parents so that if this is
|
|
# a pull request then we can checkout the head.
|
|
fetch-depth: 2
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v1
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
sudo apt-get -y -qq update
|
|
sudo apt-get -y -qq --no-install-recommends install \
|
|
cmake \
|
|
extra-cmake-modules \
|
|
libarchive-dev \
|
|
libqt5x11extras5-dev \
|
|
libsqlite3-dev \
|
|
libxcb-keysyms1-dev \
|
|
ninja-build \
|
|
qt5-default \
|
|
qtwebengine5-dev
|
|
|
|
- name: Configure & Build
|
|
uses: lukka/run-cmake@v3
|
|
with:
|
|
buildDirectory: ${{ runner.workspace }}/build/
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v1
|