Skip to content

Commit

Permalink
Update other jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Mar 27, 2024
1 parent 9544803 commit 38c0309
Showing 1 changed file with 33 additions and 12 deletions.
45 changes: 33 additions & 12 deletions .github/workflows/build-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ jobs:
Z_FEATURE_QUERY: ${{ matrix.feature_query }}

- name: Kill Zenoh router
if: always()
run: kill ${{ steps.run-zenoh.outputs.zenohd-pid }}

raweth_build:
Expand All @@ -134,14 +135,26 @@ jobs:
Z_FEATURE_RAWETH_TRANSPORT: ${{ matrix.feature_reth }}

st_build:
needs: zenoh_build
name: Build and test in single thread on ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run docker image
run: docker run --name zenoh_router --init --net host -d eclipse/zenoh:latest
- name: Download Zenoh artifacts
uses: actions/download-artifact@v4
with:
name: ${{ needs.zenoh_build.outputs.artifact-name }}

- name: Unzip Zenoh artifacts
run: unzip ${{ needs.zenoh_build.outputs.artifact-name }} -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 and run test
run: |
Expand All @@ -152,21 +165,31 @@ jobs:
env:
Z_FEATURE_MULTI_THREAD: 0

- name: Stop docker image
- name: Kill Zenoh router
if: always()
run: |
docker stop zenoh_router
docker rm zenoh_router
run: kill ${{ steps.run-zenoh.outputs.zenohd-pid }}

fragment_test:
needs: zenoh_build
name: Test multicast and unicast fragmentation
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run docker image
run: docker run --name zenoh_router --init --net host -d eclipse/zenoh:latest
- name: Download Zenoh artifacts
uses: actions/download-artifact@v4
with:
name: ${{ needs.zenoh_build.outputs.artifact-name }}

- name: Unzip Zenoh artifacts
run: unzip ${{ needs.zenoh_build.outputs.artifact-name }} -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 and run test
run: |
Expand All @@ -176,8 +199,6 @@ jobs:
python3 ./build/tests/fragment.py
timeout-minutes: 5

- name: Stop docker image
- name: Kill Zenoh router
if: always()
run: |
docker stop zenoh_router
docker rm zenoh_router
run: kill ${{ steps.run-zenoh.outputs.zenohd-pid }}

0 comments on commit 38c0309

Please sign in to comment.