Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build_commit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Commit
name: Build NuraftMesg3

on:
workflow_call:
Expand All @@ -20,7 +20,7 @@ jobs:
SislDeps:
uses: ebay/sisl/.github/workflows/build_dependencies.yml@master
with:
branch: master
branch: stable/v12.x
platform: ${{ inputs.platform }}
build-type: ${{ inputs.build-type }}
malloc-impl: ${{ inputs.malloc-impl }}
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/build_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
with:
repository: eBay/sisl
path: import/sisl
ref: master
ref: stable/v12.x
if: ${{ inputs.testing == 'True' || steps.restore-cache.outputs.cache-hit != 'true' }}

- name: Load Sisl Cache
Expand Down Expand Up @@ -159,17 +159,19 @@ jobs:

- name: Code Coverage Run
run: |
python -m pip install gcovr
conan build \
-o sisl/*:malloc_impl=${{ inputs.malloc-impl }} \
-o nuraft_mesg/*:coverage=True \
-s:h build_type=${{ inputs.build-type }} \
--build missing \
.
gcovr --cobertura ./coverage.xml
if: ${{ inputs.testing == 'True' && inputs.tooling == 'Coverage' }}

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
files: ./coverage.xml
disable_search: true
if: ${{ inputs.testing == 'True' && inputs.tooling == 'Coverage' }}
5 changes: 2 additions & 3 deletions .github/workflows/conan_build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: NuraftMesg PR Build
name: NuraftMesg3 PR Build

on:
workflow_dispatch:
pull_request:
branches:
- main
- feature/*
- stable/v3*

jobs:
Build:
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/merge_build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: NuraftMesg Build
name: NuraftMesg3 Build

on:
workflow_dispatch:
push:
branches:
- main
- stable/v3.x

jobs:
Build:
Expand Down Expand Up @@ -32,16 +32,16 @@ jobs:
build-type: ${{ matrix.build-type }}
malloc-impl: ${{ matrix.malloc-impl }}
tooling: ${{ matrix.tooling }}
#ChainBuild:
# runs-on: "ubuntu-24.04"
# steps:
# - name: Start HomeStore Build
# run: |
# curl -L \
# -X POST \
# -H "Accept: application/vnd.github+json" \
# -H "Authorization: Bearer ${{ secrets.CHAIN_BUILD_TOKEN }}"\
# -H "X-GitHub-Api-Version: 2022-11-28" \
# https://api.github.com/repos/eBay/homestore/actions/workflows/merge_build.yml/dispatches \
# -d '{"ref":"master","inputs":{}}'
# if: ${{ github.ref == 'refs/heads/main' }}
ChainBuild:
runs-on: "ubuntu-22.04"
steps:
- name: Start HomeStore Build
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.CHAIN_BUILD_TOKEN }}"\
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/eBay/homestore/actions/workflows/merge_build.yml/dispatches \
-d '{"ref":"master","inputs":{}}'
if: ${{ github.ref == 'refs/heads/master' }}
6 changes: 3 additions & 3 deletions .jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ pipeline {
stage("Compile") {
steps {
sh "./prepare_v2.sh ; \
conan create ${BUILD_MISSING} -s:h build_type=Debug -o ${PROJECT}/*:sanitize=True ${CONAN_FLAGS} . ; \
conan build ${BUILD_MISSING} --build missing -s:h build_type=Debug -o ${PROJECT}/*:sanitize=True ${CONAN_FLAGS} . ; \
conan create ${BUILD_MISSING} -s:h build_type=Debug ${CONAN_FLAGS} . ; \
conan create ${BUILD_MISSING} -s:h build_type=RelWithDebInfo -o sisl/*:malloc_impl=tcmalloc ${CONAN_FLAGS} . ; \
conan create ${BUILD_MISSING} -s:h build_type=RelWithDebInfo -o sisl/*:prerelease=True -o sisl/*:malloc_impl=tcmalloc ${CONAN_FLAGS} . ; \
conan create ${BUILD_MISSING} --build missing -s:h build_type=RelWithDebInfo -o sisl/*:malloc_impl=tcmalloc ${CONAN_FLAGS} . ; \
conan create ${BUILD_MISSING} --build missing -s:h build_type=RelWithDebInfo -o sisl/*:prerelease=True -o sisl/*:malloc_impl=tcmalloc ${CONAN_FLAGS} . ; \
"
}
}
Expand Down
7 changes: 6 additions & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ def requirements(self):

def layout(self):
self.folders.source = "."
self.folders.build = join("build", str(self.settings.build_type))
if self.options.get_safe("sanitize"):
self.folders.build = join("build", "Sanitized")
elif self.options.get_safe("coverage"):
self.folders.build = join("build", "Coverage")
else:
self.folders.build = join("build", str(self.settings.build_type))
self.folders.generators = join(self.folders.build, "generators")

self.cpp.source.includedirs = ["include"]
Expand Down
13 changes: 13 additions & 0 deletions gcovr.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
high-threshold = 80
medium-threshold = 65

exclude = .*build.*
exclude = .*flip.*
exclude = .*generate.*
exclude = .*tests.*

exclude-lines-by-pattern = .*DEBUG.*
exclude-lines-by-pattern = .*DBG.*
exclude-lines-by-pattern = .*LOG.*

gcov-ignore-parse-errors = all
Loading