codeql analysis #189
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 0 6 * * * | |
name: codeql analysis | |
jobs: | |
scan_linux: | |
name: 'Linux' | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 2 | |
- name: Configure MagickCache | |
run: | | |
sudo apt update | |
sudo apt-get install build-essential | |
wget https://www.imagemagick.org/download/ImageMagick.tar.gz | |
tar xvzf ImageMagick.tar.gz | |
cd ImageMagick-7* | |
./configure | |
make | |
sudo make install | |
- name: Configure MagickCache | |
run: | | |
export CFLAGS="-Wno-deprecated-declarations" | |
./configure | |
echo "" > config.status | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v1 | |
with: | |
languages: cpp | |
- name: Build MagickCache | |
run: | | |
make | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v1 |