Skip to content

Commit

Permalink
update codeql build
Browse files Browse the repository at this point in the history
  • Loading branch information
egecetin committed Oct 26, 2024
1 parent 6165c0b commit 29b1dbb
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
container: egecetinn/ubuntu2204
permissions:
actions: read
contents: read
Expand All @@ -31,11 +32,27 @@ jobs:
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
submodules: recursive
- name: Restore ccache
id: ccache-restore
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: |
${{ env.CCACHE_DIR }}
key: codeql-ccache-${{ github.run_id }}
restore-keys: |
codeql-ccache
- name: Initialize CodeQL
uses: github/codeql-action/init@e2b3eafc8d227b0241d48be5f425d47c2d750a13 # v3.26.10
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@e2b3eafc8d227b0241d48be5f425d47c2d750a13 # v3.26.10
- name: Configure
run: cmake -S . -B build
- name: Build
run: cmake --build build --parallel
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@e2b3eafc8d227b0241d48be5f425d47c2d750a13 # v3.26.10
- name: Save ccache
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: ${{ env.CCACHE_DIR }}
key: ${{ steps.ccache-restore.outputs.cache-primary-key }}

0 comments on commit 29b1dbb

Please sign in to comment.