Skip to content

Commit

Permalink
👷 CI: Split Windows job into multiple steps
Browse files Browse the repository at this point in the history
This way, we can see which step exactly failed, if they fail.
  • Loading branch information
zeenix committed Feb 9, 2024
1 parent b10a3f4 commit 33f5df6
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,20 +190,33 @@ jobs:
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- name: Build and Test
- name: Set up PATH for dbus-daemon
run: |
$env:PATH += ";C:\bin"
- name: Launch dbus-daemon
run: |
Start-Process dbus-daemon.exe --config-file=CI/win32-session.conf
- name: cargo test
run: |
cargo test
# tokio feature
- name: test with tokio and no default features
run: |
cargo test --no-default-features --features tokio
- name: Unset DBUS_SESSION_BUS_ADDRESS env
run: |
$env:DBUS_SESSION_BUS_ADDRESS = $null
- name: Launch gdbus executable
run: |
# This is an undocumented implementation detail, but easier and faster than calling the gdbus C library
Start-Process gdbus.exe _win32_run_session_bus
- name: Keep gdbus alive
run: |
# The gdbus process above will exit when idle for more than three seconds, usually right in the middle
# of the doc tests. This process will keep it alive.
Start-Process gdbus.exe 'monitor -e -d org.freedesktop.DBus'
- name: Test with gdbus feature
run: |
cargo test --features zbus/windows-gdbus
cross_check:
Expand Down

0 comments on commit 33f5df6

Please sign in to comment.