Skip to content

Commit

Permalink
Merge pull request #58 from albertziegenhagel/etl-app
Browse files Browse the repository at this point in the history
Improve ETL debugging tool app
  • Loading branch information
albertziegenhagel authored Apr 13, 2024
2 parents 1876e0e + 9cbf454 commit 33eb6e1
Show file tree
Hide file tree
Showing 22 changed files with 650 additions and 377 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,23 +146,35 @@ jobs:

- name: Install
run: |
cmake --install ${{ github.workspace }}/build/ci --component server --prefix ${{ github.workspace }}/install
cmake --install ${{ github.workspace }}/build/ci --component server --prefix ${{ github.workspace }}/install/server
cmake --install ${{ github.workspace }}/build/ci --component tools --prefix ${{ github.workspace }}/install/tools
- name: Add build info
- name: Create build info
shell: pwsh
run: |
"ref: ${{ github.ref_name }}`n" + `
"commit: ${{ github.sha }}`n" + `
"date: $(Get-Date -UFormat '%FT%T%Z' -AsUTC)" | Out-File -Path "${{ github.workspace }}/install/bin/info.txt"
"date: $(Get-Date -UFormat '%FT%T%Z' -AsUTC)" | Out-File -Path "${{ github.workspace }}/install/info.txt"
cp ${{ github.workspace }}/install/info.txt ${{ github.workspace }}/install/server/bin/
cp ${{ github.workspace }}/install/info.txt ${{ github.workspace }}/install/tools/bin/
- name: Upload binaries
uses: actions/upload-artifact@v3
- name: Upload server binaries
uses: actions/upload-artifact@v4
if: runner.os != 'Linux' || matrix.compiler == 'gcc'
with:
name: snail-server-${{ matrix.arch }}-${{ matrix.platform }}
path: |
${{ github.workspace }}/install/bin/snail-server*
${{ github.workspace }}/install/bin/info.txt
${{ github.workspace }}/install/server/bin/snail-server*
${{ github.workspace }}/install/server/bin/info.txt
- name: Upload tool binaries
uses: actions/upload-artifact@v4
if: runner.os != 'Linux' || matrix.compiler == 'gcc'
with:
name: snail-tools-${{ matrix.arch }}-${{ matrix.platform }}
path: |
${{ github.workspace }}/install/tools/bin/app_*
${{ github.workspace }}/install/tools/bin/info.txt
deploy-head:
name: "Deploy head"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Run clang-format
uses: DoozyX/[email protected]
with:
source: './snail ./tests'
source: './snail ./tests ./apps'
exclude: './snail/common/third_party'
extensions: 'cpp,hpp'
clangFormatVersion: 16
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
- name: Install Records
run: ninja install-records

- name: Pack & Upload rests
uses: actions/upload-artifact@v3
- name: Pack & Upload results
uses: actions/upload-artifact@v4
with:
name: test-data-${{ matrix.run-on }}
path: ${{ github.workspace }}/tests/apps/*/dist/**
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ include(CodeCoverage)
option(BUILD_TESTING "Whether to build unit & integration tests" ON)
cmake_dependent_option(SNAIL_ENABLE_CODE_COVERAGE "Enable code coverage for tests" OFF BUILD_TESTING OFF)

option(SNAIL_BUILD_TOOLS "Whether to build some debugging tools" ON)

option(SNAIL_WITH_LLVM "Required to resolve symbols from PDB and DWARF files." ON)

option(SNAIL_ENABLE_SYSTEMTESTS "Whether to enable system testing" ON)
Expand Down Expand Up @@ -84,6 +86,11 @@ endif()

add_subdirectory(snail)

if(SNAIL_BUILD_TOOLS)
# Just for testing/development
add_subdirectory(apps)
endif()

# =======
# Tests

Expand Down
4 changes: 4 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
"SNAIL_ENABLE_CODE_COVERAGE": {
"type": "BOOL",
"value": "ON"
},
"SNAIL_BUILD_TOOLS": {
"type": "BOOL",
"value": "OFF"
}
}
}
Expand Down
10 changes: 10 additions & 0 deletions apps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@ target_link_libraries(app_perf_data_file PRIVATE compile_options perf_data)

add_executable(app_analysis analysis.cpp)
target_link_libraries(app_analysis PRIVATE compile_options analysis)

install(
TARGETS
app_etl_file
app_perf_data_file
app_analysis
COMPONENT
tools
RUNTIME DESTINATION bin
)
Loading

0 comments on commit 33eb6e1

Please sign in to comment.