Skip to content

Commit

Permalink
Merge pull request #183 from eclipse-zenoh/new-protocol
Browse files Browse the repository at this point in the history
New protocol
  • Loading branch information
OlivierHecart authored Sep 8, 2023
2 parents 9b25d11 + 960edbc commit 0fba930
Show file tree
Hide file tree
Showing 262 changed files with 26,019 additions and 15,192 deletions.
3 changes: 3 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[[profile.default.overrides]]
filter = 'test(/zenoh_session_unicast/)'
threads-required = 'num-cpus'
23 changes: 22 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,31 @@ jobs:
with:
command: fmt
args: -- --check
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- -D warnings
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

- name: Clippy unstable
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --features unstable -- -D warnings
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

- name: Clippy shared-memory
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macOS-latest' }}
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --features shared-memory -- -D warnings
args: --all-targets --features shared-memory --features transport_shm -- -D warnings

test:
name: Run tests on ${{ matrix.os }}
Expand Down Expand Up @@ -92,6 +99,17 @@ jobs:
command: nextest
args: run --exclude zenoh-examples --exclude zenoh-plugin-example --workspace
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
ASYNC_STD_THREAD_COUNT: 4

- name: Run tests with SHM
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions-rs/cargo@v1
with:
command: nextest
args: run -F shared-memory -F transport_shm -p zenoh-transport
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
ASYNC_STD_THREAD_COUNT: 4

- name: Run doctests
Expand All @@ -100,6 +118,7 @@ jobs:
command: test
args: --doc
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
ASYNC_STD_THREAD_COUNT: 4

nostd:
Expand All @@ -123,3 +142,5 @@ jobs:
with:
command: check
args: --bin nostd_check --target x86_64-unknown-none --manifest-path ci/nostd-check/Cargo.toml
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
1 change: 0 additions & 1 deletion .github/workflows/crates_check.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
cargo check -p zenoh-result --manifest-path commons/zenoh-result/Cargo.toml &&
cargo check -p zenoh-core --manifest-path commons/zenoh-core/Cargo.toml &&
cargo check -p zenoh-keyexpr --manifest-path commons/zenoh-keyexpr/Cargo.toml &&
cargo check -p zenoh-cfg-properties --manifest-path commons/zenoh-cfg-properties/Cargo.toml &&
cargo check -p zenoh-collections --manifest-path commons/zenoh-collections/Cargo.toml &&
cargo check -p zenoh-crypto --manifest-path commons/zenoh-crypto/Cargo.toml &&
cargo check -p zenoh-buffers --manifest-path commons/zenoh-buffers/Cargo.toml &&
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/crates_publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ cargo login $1
(cd commons/zenoh-result && cargo publish)
(cd commons/zenoh-core && cargo publish)
(cd commons/zenoh-keyexpr && cargo publish)
(cd commons/zenoh-cfg-properties && cargo publish)
(cd commons/zenoh-collections && cargo publish)
(cd commons/zenoh-crypto && cargo publish)
(cd commons/zenoh-buffers && cargo publish)
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:
with:
command: fmt
args: -- --check
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

- name: Clippy check
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -116,19 +119,25 @@ jobs:
run: rustup show
- name: Install nextest
run: cargo install cargo-nextest --locked
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

- name: Run tests
uses: actions-rs/cargo@v1
with:
command: nextest
args: run --release --features=${{ github.event.inputs.features}} --verbose
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
ASYNC_STD_THREAD_COUNT: 4

- name: Run doctests
uses: actions-rs/cargo@v1
with:
command: test
args: --release --features=${{ github.event.inputs.features}} --doc
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
ASYNC_STD_THREAD_COUNT: 4

doc:
Expand All @@ -142,8 +151,6 @@ jobs:
- name: Install Rust toolchain nightly for docs gen
run: rustup toolchain install nightly
- name: generate doc
env:
RUSTDOCFLAGS: -Dwarnings
uses: actions-rs/cargo@v1
with:
toolchain: nightly
Expand Down Expand Up @@ -248,20 +255,26 @@ jobs:
with:
command: deb
args: --no-build --target=${{ matrix.job.target }} -p zenohd
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

- name: Debian package - zenoh-plugin-storage-manager
if: contains(matrix.job.target, '-linux-gnu')
uses: actions-rs/cargo@v1
with:
command: deb
args: --no-build --target=${{ matrix.job.target }} -p zenoh-plugin-storage-manager
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

- name: Debian package - zenoh-plugin-rest
if: contains(matrix.job.target, '-linux-gnu')
uses: actions-rs/cargo@v1
with:
command: deb
args: --no-build --target=${{ matrix.job.target }} -p zenoh-plugin-rest
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

- name: Packaging
id: package
Expand Down
Loading

0 comments on commit 0fba930

Please sign in to comment.