From e4e8c0342f61488c92ed0b4f6d78e233c1d8d138 Mon Sep 17 00:00:00 2001 From: Teoh Han Hui Date: Tue, 3 Sep 2024 23:59:21 +0800 Subject: [PATCH] Enable `wayland` feature for `bevy` in dev --- .github/workflows/ci.yml | 10 ++++++++++ Cargo.toml | 1 + 2 files changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f6aac17..18c817f1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,9 @@ jobs: - name: Install stable toolchain uses: dtolnay/rust-toolchain@stable + - name: Install Linux dependencies + run: sudo apt-get install libwayland-dev libxkbcommon-dev + - name: Run cargo check run: cargo check --all-targets @@ -53,6 +56,9 @@ jobs: - name: Install stable toolchain uses: dtolnay/rust-toolchain@stable + - name: Install Linux dependencies + run: sudo apt-get install libwayland-dev libxkbcommon-dev + - name: Build examples run: cargo build --examples @@ -77,5 +83,9 @@ jobs: - name: Install stable toolchain uses: dtolnay/rust-toolchain@stable + - name: Install Linux dependencies + if: ${{ matrix.os == 'ubuntu-latest' }} + run: sudo apt-get install libwayland-dev libxkbcommon-dev + - name: Run cargo test run: cargo test diff --git a/Cargo.toml b/Cargo.toml index 6f9bb52c..1295ce81 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -61,6 +61,7 @@ features = [ "png", "ktx2", "bevy_winit", + "wayland", "x11", "bevy_text", "bevy_sprite",