[bug] Fix missing header file for Zeek #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| build_release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install Rust | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| override: true | |
| - name: Build C++ Sys Library | |
| run: | | |
| cargo build --release | |
| - name: Package Release Tarball | |
| run: | | |
| mkdir -p fluvio-client-cpp-linux-x64/lib | |
| mkdir -p fluvio-client-cpp-linux-x64/include/fluvio-client-cpp/src | |
| mkdir -p fluvio-client-cpp-linux-x64/include/rust | |
| # Copy static library | |
| cp target/release/libfluvio_client_cpp.a fluvio-client-cpp-linux-x64/lib/ | |
| # Copy manual C/C++ Headers | |
| cp -r include/* fluvio-client-cpp-linux-x64/include/ | |
| # Find and copy generated headers | |
| find target/release/build -name 'lib.rs.h' -exec cp {} fluvio-client-cpp-linux-x64/include/fluvio-client-cpp/src/ \; | |
| find target/release/build -name 'cxx.h' -exec cp {} fluvio-client-cpp-linux-x64/include/rust/ \; | |
| # Add CMake config | |
| cp fluvio_client_cppConfig.cmake fluvio-client-cpp-linux-x64/ | |
| tar -czvf fluvio-client-cpp-linux-x64.tar.gz fluvio-client-cpp-linux-x64/ | |
| - name: Upload Release Asset | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: fluvio-client-cpp-linux-x64.tar.gz | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |