blob: 48bcae3607005f0340dd0bf47e5d08ae49548fc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
name: "neozip: CodeQL"
on:
workflow_call:
workflow_dispatch:
jobs:
analyze:
name: CodeQL (${{ matrix.os }})
runs-on: ${{ matrix.os }}
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
show-progress: 'false'
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: cpp
queries: +security-and-quality
- name: Build default config
shell: bash
run: |
cmake -B build-default -S neozip ${{ runner.os == 'Windows' && '-A x64' || '' }}
cmake --build build-default -j4
- name: Build compat config
shell: bash
run: |
cmake -B build-compat -S neozip -DZLIB_COMPAT=ON -DWITH_NEW_STRATEGIES=OFF -DWITH_OPTIM=OFF -DWITH_REDUCED_MEM=ON ${{ runner.os == 'Windows' && '-A x64' || '' }}
cmake --build build-compat -j4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/oss:${{ matrix.os }}"
|