Skip to content
Merged
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
37 changes: 36 additions & 1 deletion .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
unit-tests:
name: "Build ${{ matrix.build_type }} with ${{ matrix.compiler }}"
runs-on: ubuntu-latest
env:
CALF_LOG_DIR: ${{ github.workspace }}/capiocl_logs
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -63,11 +65,28 @@ jobs:
shell: bash
run: CAPIO_CL_tests --gtest_break_on_failure --gtest_print_time=1

- name: Zip logs
if: always()
run: |
if [ -d "capiocl_logs" ]; then
cmake -E tar cf capiocl_logs.zip --format=zip capiocl_logs
fi

- name: Upload logs artifact
if: always()
uses: actions/upload-artifact@v7
with:
name: capiocl-logs-${{ matrix.build_type }}-${{ strategy.job-index }}
path: capiocl_logs.zip
retention-days: 1
if-no-files-found: ignore

upload-to-codecov:
name: "compute Codecov"
needs: [ "unit-tests"]
runs-on: ubuntu-latest
env:
CALF_LOG_DIR: ${{ github.workspace }}/capiocl_logs
steps:
- uses: actions/checkout@v7

Expand Down Expand Up @@ -96,6 +115,22 @@ jobs:
shell: bash
run: CAPIO_CL_tests --gtest_break_on_failure --gtest_print_time=1

- name: Zip logs
if: always()
run: |
if [ -d "capiocl_logs" ]; then
cmake -E tar cf capiocl_logs.zip --format=zip capiocl_logs
fi

- name: Upload logs artifact
if: always()
uses: actions/upload-artifact@v7
with:
name: capiocl-logs-coverage
path: capiocl_logs.zip
retention-days: 1
if-no-files-found: ignore

- name: "Generate coverage report"
run: |
pip install --upgrade gcovr
Expand Down Expand Up @@ -170,4 +205,4 @@ jobs:
with:
source: ${{matrix.path}}
extensions: 'h,cpp,c'
clangFormatVersion: 20
clangFormatVersion: 20
17 changes: 17 additions & 0 deletions .github/workflows/python-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
runs-on: ${{ matrix.on }}
env:
INSTALL_PREFIX: "/usr/local"
CALF_LOG_DIR: ${{ github.workspace }}/capiocl_logs

steps:
- name: "Checkout repository"
Expand Down Expand Up @@ -68,6 +69,22 @@ jobs:
run: |
pytest -k "not test_home_node" -v tests/python/test_*

- name: "Zip CALF logs"
if: always()
run: |
if [ -d "capiocl_logs" ]; then
cmake -E tar cf capiocl_logs.zip --format=zip capiocl_logs
fi

- name: "Upload CALF logs"
if: always()
uses: actions/upload-artifact@v7
with:
name: ${{ format('capiocl-logs-{0}-{1}', matrix.on, matrix.python) }}
path: capiocl_logs.zip
retention-days: 1
if-no-files-found: ignore


- name: "Generate coverage report"
if: ${{ startsWith(matrix.on, 'ubuntu-') }}
Expand Down
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ FetchContent_Declare(
FetchContent_Declare(
calf
GIT_REPOSITORY https://github.com/High-Performance-IO/calf.git
GIT_TAG v0.1.1
GIT_TAG v0.2.0
)

set(CALF_PROTOBUF ON CACHE BOOL "" FORCE)

# JSONCONS build flags
set(JSONCONS_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(JSONCONS_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
Expand Down Expand Up @@ -161,6 +163,7 @@ endif ()
calf_enable_log(libcapio_cl $<IF:$<CONFIG:Debug>,ON,OFF>)
calf_set_component(libcapio_cl "capiocl")
calf_set_default_log_dir(libcapio_cl "./capiocl_logs")
target_link_libraries(libcapio_cl PRIVATE calf::protobuf)
target_include_directories(libcapio_cl PRIVATE ${CALF_SOURCE_DIR})

#####################################
Expand Down
Loading