Skip to content

Commit 5aac6a8

Browse files
committed
cargo-dinghy
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
1 parent 7d058f2 commit 5aac6a8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/main.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,20 @@ jobs:
6969
rustup target add ${{ matrix.platform.target }}
7070
cargo build --features "${{ matrix.features }}" --target ${{ matrix.platform.target }}
7171
- name: Test
72-
if: ${{ matrix.platform.test && startsWith(matrix.platform.os, 'ubuntu') }}
72+
if: ${{ matrix.platform.test && startsWith(matrix.platform.os, 'ubuntu') && !contains(matrix.platform.target, 'android') }}
7373
run: |
7474
weston --no-config --socket=wl-test-env --backend=headless &
7575
WAYLAND_DISPLAY=wl-test-env xvfb-run cargo test --features "${{ matrix.features }}" --target ${{ matrix.platform.target }}
7676
- name: Test
77-
if: ${{ matrix.platform.test && !startsWith(matrix.platform.os, 'ubuntu') }}
77+
if: ${{ matrix.platform.test && !startsWith(matrix.platform.os, 'ubuntu') && !contains(matrix.platform.target, 'android') }}
7878
run: |
7979
cargo test --features "${{ matrix.features }}" --target ${{ matrix.platform.target }}
80+
- name: Test
81+
if: ${{ matrix.platform.test && contains(matrix.platform.target, 'android') }}
82+
run: |
83+
cargo install cargo-dinghy
84+
cargo dinghy all-platforms
85+
cargo dingy test --features "${{ matrix.features }}" --target ${{ matrix.platform.target }}
8086
Format:
8187
name: Run `rustfmt`
8288
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)