ci: test cosmic-theme

This commit is contained in:
Adil Hanney 2026-04-01 17:11:42 +01:00
parent f06d15ae35
commit 4bf56e4242
No known key found for this signature in database

View file

@ -33,16 +33,17 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
features: test_args:
- "" # for cosmic-comp, don't remove! - --no-default-features --features "" # for cosmic-comp, don't remove!
- 'winit_debug' - --no-default-features --features "winit_debug"
- 'winit_tokio' - --no-default-features --features "winit_tokio"
- winit - --no-default-features --features "winit"
- winit_wgpu - --no-default-features --features "winit_wgpu"
- wayland - --no-default-features --features "wayland"
- applet - --no-default-features --features "applet"
- desktop,smol - --no-default-features --features "desktop,smol"
- desktop,tokio - --no-default-features --features "desktop,tokio"
- -p cosmic-theme
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- name: Checkout sources - name: Checkout sources
@ -66,7 +67,7 @@ jobs:
- name: Rust toolchain - name: Rust toolchain
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
- name: Test features - name: Test features
run: cargo test --no-default-features --features "${{ matrix.features }}" -- --test-threads=1 run: cargo test ${{ matrix.test_args }} -- --test-threads=1
env: env:
RUST_BACKTRACE: full RUST_BACKTRACE: full
@ -103,7 +104,7 @@ jobs:
run: sudo apt-get update; sudo apt-get install -y libxkbcommon-dev libwayland-dev run: sudo apt-get update; sudo apt-get install -y libxkbcommon-dev libwayland-dev
- name: Rust toolchain - name: Rust toolchain
uses: dtolnay/rust-toolchain@stable uses: dtolnay/rust-toolchain@stable
- name: Test example - name: Check example
run: cargo check -p "${{ matrix.examples }}" run: cargo check -p "${{ matrix.examples }}"
env: env:
RUST_BACKTRACE: full RUST_BACKTRACE: full