-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update(dummy_c): create a custom CI workflow for dummy_c
#382
Changes from all commits
d664582
d239e49
3286d90
d5b003e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
Language: Cpp | ||
BasedOnStyle: LLVM | ||
AccessModifierOffset: -8 | ||
BreakBeforeBraces: Allman | ||
BreakConstructorInitializers: AfterColon | ||
ColumnLimit: 80 | ||
ConstructorInitializerIndentWidth: 8 | ||
ContinuationIndentWidth: 8 | ||
DerivePointerAlignment: true | ||
IndentWidth: 4 | ||
SortIncludes: Never | ||
SpaceAfterTemplateKeyword: false | ||
SpaceBeforeCtorInitializerColon: false | ||
SpaceBeforeParens: Never | ||
UseTab: Never |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we cannot rely on the codeQL autobuild mode for complex cpp projects, |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. dedicated CI for the dummy_c plugin |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Build dummy_c plugin | ||
on: | ||
pull_request: | ||
branches: [ master ] | ||
paths: | ||
- 'plugins/dummy_c/**' | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- 'plugins/dummy_c/**' | ||
workflow_dispatch: | ||
|
||
# Checks if any concurrent jobs under the same pull request or branch are being executed | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout ⤵️ | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install deps ⛓️ | ||
run: | | ||
sudo apt update -y | ||
sudo apt install -y --no-install-recommends build-essential | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: cpp | ||
|
||
- name: Build dummy_c plugin 🏗️ | ||
run: | | ||
cd plugins/dummy_c | ||
make libdummy_c.so | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
|
||
formatting-check: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- name: Run clang-format style check | ||
uses: jidicula/clang-format-action@f62da5e3d3a2d88ff364771d9d938773a618ab5e #v4.11.0 | ||
with: | ||
clang-format-version: '14' | ||
check-path: plugins/dummy_c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file will be used also by the
k8smeta
plugin