diff --git a/.github/workflows/build-check.yaml b/.github/workflows/build-check.yaml index ba90599cc..ba54ce37a 100644 --- a/.github/workflows/build-check.yaml +++ b/.github/workflows/build-check.yaml @@ -67,8 +67,39 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Run docker image - run: docker run --name zenoh_router --init --net host -d eclipse/zenoh:latest + - id: build-zenoh + name: Build Zenoh + uses: eclipse-zenoh/ci/build-crates-standalone@main + with: + repo: eclipse-zenoh/zenoh + branch: main + # TODO(fuzzypixelz): Change the build-crates-standalone action to: + # - Infer the version using git-describe + # - Use the host target by default + # - Not require a personal access token by default + # - Upload all artifacts by default + # - Optionally build in a given directory, rather than uploading artifacts + version: 0.0.0 + target: x86_64-unknown-linux-gnu + artifact-patterns: | + zenohd + libzenoh_plugin_rest.so + libzenoh_plugin_storage_manager.so + github-token: ${{ secrets.BOT_TOKEN_WORKFLOW }} + + - name: Download Zenoh artifacts + uses: actions/download-artifact@v4 + with: + pattern: zenoh-*-standalone.zip + + - name: Unzip Zenoh artifacts + run: unzip zenoh-*-standalone.zip -d zenoh-standalone + + - id: run-zenoh + name: Run Zenoh router + run: | + RUST_LOG=debug ./zenoh-standalone/zenohd & + echo "zenohd-pid=$!" >> $GITHUB_OUTPUT - name: Build project run: | @@ -82,11 +113,8 @@ jobs: Z_FEATURE_QUERYABLE: ${{ matrix.feature_queryable }} Z_FEATURE_QUERY: ${{ matrix.feature_query }} - - name: Stop docker image - if: always() - run: | - docker stop zenoh_router - docker rm zenoh_router + - name: Kill Zenoh router + run: kill ${{ steps.run-zenoh.outputs.zenohd-pid }} raweth_build: name: Build and test raweth transport on ubuntu-latest