Skip to content

Commit

Permalink
publish artifact for test only
Browse files Browse the repository at this point in the history
  • Loading branch information
gleocadie committed Jun 8, 2022
1 parent 7a7a288 commit 9c2d602
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,15 @@ jobs:
run: "echo ::set-output name=version::$(rustc --version)"
- name: "Generate FFI"
run: bash ffi-build.sh /tmp/libddprof

- name: 'Publish libdatadog'
uses: actions/upload-artifact@v2
if: '${{ always() }}'
with:
if-no-files-found: error
name: libdatadog.${{ matrix.platform }}
path: /tmp/libddprof
retention-days: 1

- name: "Test building C bindings"
run: mkdir examples/ffi/build && cd examples/ffi/build && cmake -S .. -DDDProf_ROOT=/tmp/libddprof && cmake --build .
2 changes: 1 addition & 1 deletion ffi-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ if [ -n "$unexpected_native_libs" ]; then
fi
cd -

echo "Generating the ddprof/ffi.h header..."
echo "Generating the $destdir/ddprof/ffi.h header..."
cbindgen --crate ddprof-ffi --config ddprof-ffi/cbindgen.toml --output "$destdir/include/ddprof/ffi.h"

# CI doesn't have any clang tooling
Expand Down

0 comments on commit 9c2d602

Please sign in to comment.