clean up code #11
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
# ----------------------------------------------------- | |
# Copyright Iliass Mahjoub 2023. | |
# Distributed under MIT License | |
# (See accompanying file LICENSE | |
# or copy at http://www.boost.org/LICENSE_1_0.txt) | |
# ----------------------------------------------------- | |
name: "CodeQL" | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ c ] | |
suite: [ all ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
queries: +security-and-quality | |
- name: update-tools | |
run: sudo apt install gcc-arm-none-eabi | |
- name: target-ubuntu-${{ matrix.suite }} | |
working-directory: ./Build/VS | |
run: | | |
make -f ../Make/make_stm32l432kc.gmk ${{ matrix.suite }} TYP_OS=unix | |
ls -la ../Bin/STM32L432_FlashMaster_x64/stm32l432kc.elf ../Bin/STM32L432_FlashMaster_x64/stm32l432kc.hex | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 | |
with: | |
category: "/language:${{ matrix.language }}" |