add more log #219
Workflow file for this run
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
name: CodeQL | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check-changed-file: | |
runs-on: ubuntu-latest | |
name: Test changed source file | |
outputs: | |
source_changed: ${{ steps.changed-src.outputs.any_changed }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Get changed files in the source folder | |
id: changed-src | |
uses: tj-actions/changed-files@v35 | |
with: | |
files: | | |
CMakeLists.txt | |
src/** | |
test/** | |
- name: Set Buil Bullseye to success | |
if: steps.changed-src.outputs.any_changed == 'false' | |
uses: ouzi-dev/commit-status-updater@v2 | |
with: | |
name: Analyze | |
status: success | |
analyze: | |
name: Analyze | |
needs: check-changed-file | |
if: needs.check-changed-file.outputs.source_changed == 'true' | |
runs-on: ubuntu-latest | |
container: docker.io/ubuntu:jammy | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ cpp ] | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Restore cached build directory | |
id: cache-build-restore | |
uses: actions/cache@v3 | |
with: | |
path: build | |
key: codeql-${{ hashFiles('CMakeLists.txt') }} | |
- name: Add dependencies | |
run: | | |
export DEBIAN_FRONTEND=noninteractive | |
apt update | |
apt install -y build-essential cmake git tclsh ninja-build lcov libssl-dev libsasl2-dev curl libcurl4-openssl-dev | |
- name: Create build directory | |
run: mkdir -p build | |
- name: Configure CMake | |
run: cmake -DCMAKE_BUILD_TYPE=Debug -B build | |
- name: Build | |
run: cmake --build build --config Debug --target boost epics liblz4 librdkafka sqlite_dist sqlite_orm | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Build | |
run: cmake --build build --config Debug --target k2eg | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 |