-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add features to hide Zenoh unstable (#91)
* Add features to hide Zenoh unstable Signed-off-by: ChenYing Kuo <[email protected]> * Add more description for feature zenoh-unstable Signed-off-by: ChenYing Kuo <[email protected]> --------- Signed-off-by: ChenYing Kuo <[email protected]>
- Loading branch information
Showing
6 changed files
with
139 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# ******************************************************************************** | ||
# Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
# | ||
# See the NOTICE file(s) distributed with this work for additional | ||
# information regarding copyright ownership. | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Apache License Version 2.0 which is available at | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# *******************************************************************************/ | ||
|
||
# Test all feature combinations on a range of OS platforms | ||
|
||
name: Matrix-test | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
|
||
env: | ||
RUST_TOOLCHAIN: ${{ vars.RUST_TOOLCHAIN || 'stable' }} | ||
RUSTFLAGS: -Dwarnings | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
# [impl->req~up-language-ci-test~1] | ||
test-all-features: | ||
name: all feature combinations | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: "recursive" | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Install cargo-all-features | ||
run: | | ||
cargo install cargo-all-features | ||
- name: Show toolchain information | ||
working-directory: ${{ github.workspace }} | ||
run: | | ||
rustup toolchain list | ||
cargo --version | ||
- name: cargo-check all possible feature combinations | ||
run: | | ||
cargo check-all-features | ||
- name: cargo-test all possible feature combinations | ||
run: | | ||
cargo test-all-features | ||
# Alternative to the full feature matrix tested in the step above - somewhat faster... | ||
# multi-os-nextest: | ||
# runs-on: ${{ matrix.os }} | ||
# env: | ||
# NEXTEST_EXPERIMENTAL_LIBTEST_JSON: 1 | ||
# strategy: | ||
# matrix: | ||
# os: [ubuntu-latest, windows-latest, macOS-latest] | ||
# feature-flags: ["", "--no-default-features", "--all-features"] | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: dtolnay/rust-toolchain@master | ||
# with: | ||
# toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
# - uses: Swatinem/rust-cache@v2 | ||
# - uses: taiki-e/install-action@nextest | ||
# - name: Run cargo nextest | ||
# run: | | ||
# cargo nextest run --message-format libtest-json-plus ${{ matrix.feature-flags }} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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