Skip to content
Draft
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
40 changes: 35 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,16 @@ jobs:
cd examples/ffi/build_dll
cmake -S .. -DDatadog_ROOT=$LIBDD_OUTPUT_FOLDER -DVCRUNTIME_LINK_TYPE=DLL
cmake --build .
- name: "(Windows) Run Profiling FFI examples - dynamic link vc runtime"
if: matrix.platform == 'windows-latest'
shell: bash
run: |
set -e
cd examples/ffi/build_dll/Debug
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo: we should run more examples. though for now some of these are failing

for exe in profiles profile_intern exporter; do
echo "Running ${exe}.exe..."
./${exe}.exe
done
- name: "(Windows) Test building Profiling C bindings - static link vc runtime"
if: matrix.platform == 'windows-latest'
shell: bash
Expand All @@ -217,23 +227,43 @@ jobs:
cd examples/ffi/build_static
cmake -S .. -DDatadog_ROOT=$LIBDD_OUTPUT_FOLDER -DVCRUNTIME_LINK_TYPE=STATIC
cmake --build .
- name: "(Windows) Run Profiling FFI examples - static link vc runtime"
if: matrix.platform == 'windows-latest'
shell: bash
run: |
set -e
cd examples/ffi/build_static/Debug
for exe in profiles profile_intern exporter; do
echo "Running ${exe}.exe..."
./${exe}.exe
done
- name: "Test building Profiling C bindings"
shell: bash
if: matrix.platform != 'windows-latest'
run: |
set -e
mkdir examples/ffi/build
cd examples/ffi/build
# Add BUILD_SYMBOLIZER variable only for Linux platforms
if [[ "${{ matrix.platform }}" == "ubuntu-latest" ]]; then
cmake -S .. -DDatadog_ROOT=$LIBDD_OUTPUT_FOLDER -DBUILD_SYMBOLIZER=true
cmake --build .
./symbolizer
./crashinfo
else
cmake -S .. -DDatadog_ROOT=$LIBDD_OUTPUT_FOLDER
cmake --build .
fi
cmake --build .
- name: "Run Profiling FFI examples"
shell: bash
if: matrix.platform != 'windows-latest'
run: |
set -e
cd examples/ffi/build
examples="profiles profile_intern exporter"
if [[ "${{ matrix.platform }}" == "ubuntu-latest" ]]; then
examples="$examples symbolizer"
fi
for exe in $examples; do
echo "Running ${exe}..."
./${exe}
done
- name: "Test building CXX bindings - Crashinfo (Unix)"
shell: bash
if: matrix.platform != 'windows-latest'
Expand Down
Loading