Skip to content

update static analyzer #3

update static analyzer

update static analyzer #3

name: CLang Static Analyzer
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
clang_static_analyzer:
runs-on: ubuntu-22.04
run: |

Check failure on line 21 in .github/workflows/clang_static_analyzer.yml

View workflow run for this annotation

GitHub Actions / CLang Static Analyzer

Invalid workflow file

The workflow is not valid. .github/workflows/clang_static_analyzer.yml (Line: 21, Col: 5): Unexpected value 'run'
sudo apt-get install clang
steps:
- uses: actions/checkout@v3
- name: Set reusable strings
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: install deps
run: |
apt-get update && apt-get install build-essential -y && snap install cmake --classic && wget https://apt.llvm.org/llvm.sh && chmod u+x llvm.sh && sudo ./llvm.sh 19 all
mkdir build
cd build
- name: Configure CMake
run: >
scan-build-19 cmake ..
-DCMAKE_BUILD_TYPE=Release
-S ${{ github.workspace }}
- name: Build
# Build your program with the given configuration.
run: scan-build-19 make