Skip to content

CodeQL analysis

CodeQL analysis #98

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "CodeQL analysis"
on:
push:
tags: ["*"]
branches: ["*"]
pull_request:
branches: ["*"]
schedule:
- cron: "25 10 * * 3"
workflow_dispatch:
permissions: {}
jobs:
analyze:
name: "CodeQL analysis (${{ matrix.language }})"
runs-on: "ubuntu-latest"
permissions:
actions: "read"
contents: "read"
security-events: "write"
strategy:
fail-fast: false
matrix:
language: ["cpp", "javascript"]
steps:
- name: "Checkout"
uses: "actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332"
- name: "Initialize CodeQL"
uses: "github/codeql-action/init@4dd16135b69a43b6c8efb853346f8437d92d3c93"
with:
languages: "${{ matrix.language }}"
- name: "Install dependencies"
run: |
sudo apt-get update && sudo apt-get install -y --no-install-recommends libsdl2-dev
- name: "Build"
working-directory: "./sfxr/"
run: |
make clean all SFXR_GTK=
- name: "Perform CodeQL Analysis"
uses: "github/codeql-action/analyze@4dd16135b69a43b6c8efb853346f8437d92d3c93"