Skip to content

0.3. Update version #385

0.3. Update version

0.3. Update version #385

# ------------------------------------------------------------------------------
# USB EPROM/Flash Programmer
#
# Copyright (2024) Robson Martins
#
# This work is licensed under a Creative Commons Attribution-NonCommercial-
# ShareAlike 4.0 International License.
# ------------------------------------------------------------------------------
name: CodeQL Analysis
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
analyze:
name: Analyze Source Code
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
steps:
# ------------------------------------------------------------------------
# Initialize
# ------------------------------------------------------------------------
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# ------------------------------------------------------------------------
# Checkout the sources
# ------------------------------------------------------------------------
- name: Checkout Repository
uses: actions/checkout@v4
# ------------------------------------------------------------------------
# Install Prerequisites
# ------------------------------------------------------------------------
- name: Install Prerequisites
run: |
sudo apt-get update &&
sudo apt-get install cmake build-essential libglu1-mesa-dev libpulse-dev libglib2.0-dev &&
sudo apt-get --no-install-recommends install libqt*5-dev qt*5-dev libqt5waylandcompositor5-dev
# ------------------------------------------------------------------------
# Build
# ------------------------------------------------------------------------
- name: Build Application
run: |
mkdir -p ./firmware/usbflashprog/build &&
cmake -B ./firmware/usbflashprog/build -S ./firmware/usbflashprog -DTEST_BUILD=ON &&
cmake --build ./firmware/usbflashprog/build &&
mkdir -p ./software/usbflashprog/build &&
cmake -B ./software/usbflashprog/build -S ./software/usbflashprog &&
cmake --build ./software/usbflashprog/build
# ------------------------------------------------------------------------
# Perform Analysis
# ------------------------------------------------------------------------
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2