Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👷 CI: Only build/test in release mode #1261

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,10 @@ jobs:
linux_test:
runs-on: ubuntu-latest
needs: [fmt, clippy]
strategy:
matrix:
# Test in both debug and release mode
env:
- PROFILE: dev
- PROFILE: release
env:
RUSTFLAGS: -D warnings
RUST_BACKTRACE: full
RUST_LOG: trace
PROFILE: ${{ matrix.env.PROFILE }}
steps:
- uses: actions/checkout@v4
- name: Setup
Expand All @@ -103,17 +96,17 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Build and Test
run: |
dbus-run-session --config-file /tmp/dbus-session-abstract.conf -- cargo --locked test --profile "$PROFILE" --verbose -- basic_connection
dbus-run-session --config-file /tmp/dbus-session-abstract.conf -- cargo --locked test --release --verbose -- basic_connection
# All features except tokio.
dbus-run-session --config-file /tmp/dbus-session.conf -- \
cargo --locked test --profile "$PROFILE" --verbose --features uuid,url,time,chrono,option-as-array,vsock,bus-impl \
cargo --locked test --release --verbose --features uuid,url,time,chrono,option-as-array,vsock,bus-impl \
-- --skip fdpass_systemd
# Test tokio support.
dbus-run-session --config-file /tmp/dbus-session.conf -- \
cargo --locked test --profile "$PROFILE" --verbose --tests -p zbus --no-default-features \
cargo --locked test --release --verbose --tests -p zbus --no-default-features \
--features tokio-vsock -- --skip fdpass_systemd
dbus-run-session --config-file /tmp/dbus-session.conf -- \
cargo --locked test --profile "$PROFILE" --verbose --doc --no-default-features connection::Connection::executor
cargo --locked test --release --verbose --doc --no-default-features connection::Connection::executor
# zvariant only with ostree tests (which implicitly enables `gvariant` feature too).
cargo --locked t -p zvariant --features ostree-tests

Expand Down
Loading