-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71db641
commit c10672e
Showing
9 changed files
with
155 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- directory: / | ||
package-ecosystem: gitsubmodule | ||
schedule: | ||
interval: daily | ||
- directory: / | ||
package-ecosystem: github-actions | ||
schedule: | ||
interval: daily |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Checks | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
checks: | ||
name: Run black-desk/checks | ||
permissions: | ||
checks: write | ||
contents: read | ||
issues: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: black-desk/checks@master | ||
build-and-test: | ||
name: Build and tests | ||
runs-on: "ubuntu-latest" | ||
strategy: | ||
matrix: | ||
container: | ||
- debian:oldstable-slim | ||
- debian:stable-slim | ||
- debian:sid-slim | ||
cxx: [g++, clang++] | ||
container: | ||
image: ${{ matrix.container }} | ||
steps: | ||
- name: Checkout project | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Cache CPM.cmake Source | ||
uses: actions/cache@v4 | ||
with: | ||
path: .cache/cpm/source | ||
key: ${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | ||
- name: Setup cmake | ||
uses: jwlawson/[email protected] | ||
- name: Install system dependencies | ||
run: | | ||
apt update && | ||
apt install pkg-config make git g++ clang -y | ||
- name: Build project with cmake by preset debug | ||
run: | | ||
mkdir -p .cache/cpm/source && | ||
export CXX="${{ matrix.cxx }}" && | ||
export CPM_SOURCE_CACHE="$PWD/.cache/cpm/source" && | ||
cmake --workflow --preset debug | ||
pass: | ||
name: Pass | ||
if: always() | ||
needs: | ||
- checks | ||
- build-and-test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Decide whether the needed jobs succeeded or failed | ||
uses: re-actors/alls-green@release/v1 | ||
with: | ||
jobs: ${{ toJSON(needs) }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"version": 6, | ||
"cmakeMinimumRequired": { | ||
"major": 3, | ||
"minor": 25, | ||
"patch": 0 | ||
}, | ||
"configurePresets": [ | ||
{ | ||
"name": "debug", | ||
"displayName": "Debug configuration", | ||
"description": "Configure errors for development and debugging.", | ||
"binaryDir": "${sourceDir}/build", | ||
"cacheVariables": { | ||
"CPM_DOWNLOAD_ALL": "ON", | ||
"OCPPI_WITH_SPDLOG": true, | ||
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -Og -g -fsanitize=address,undefined", | ||
"CMAKE_EXPORT_COMPILE_COMMANDS": true, | ||
"CMAKE_COLOR_DIAGNOSTICS": true | ||
} | ||
} | ||
], | ||
"buildPresets": [ | ||
{ | ||
"name": "debug", | ||
"displayName": "Debug build", | ||
"description": "Build errors for development and debugging.", | ||
"configurePreset": "debug" | ||
} | ||
], | ||
"workflowPresets": [ | ||
{ | ||
"name": "debug", | ||
"displayName": "Workflow for developers", | ||
"description": "Configure, build then test for developing and debuging ocppi.", | ||
"steps": [ | ||
{ | ||
"type": "configure", | ||
"name": "debug" | ||
}, | ||
{ | ||
"type": "build", | ||
"name": "debug" | ||
} | ||
] | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
with section("format"): | ||
disable = True |
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
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
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
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