Skip to content

Update GitHub Action workflows for new runner #37

Update GitHub Action workflows for new runner

Update GitHub Action workflows for new runner #37

name: CodeQL Analysis
on:
push:
pull_request:
branches: [ master ]
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: >
libcurl4-openssl-dev
libnotify-dev
- uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: cpp
queries: security-and-quality
- name: Create Build Environment
run: |
mkdir -p ${{ github.workspace }}/build
autoreconf --install
- name: Configure GNU Automake
working-directory: ${{ github.workspace }}/build
run: |
${{ github.workspace }}/configure \
--enable-libnotify
- name: Build
working-directory: ${{ github.workspace }}/build
run: make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2