mirror of
https://github.com/danbulant/cushy
synced 2026-05-19 04:08:38 +00:00
Adding xdg to ci
This commit is contained in:
parent
357dbcbbe9
commit
8bed71cfb5
5 changed files with 7 additions and 7 deletions
4
.github/workflows/docs.yml
vendored
4
.github/workflows/docs.yml
vendored
|
|
@ -14,7 +14,7 @@ jobs:
|
|||
sudo add-apt-repository ppa:oibaf/graphics-drivers -y
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
|
||||
libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers libdbus-1-dev pkg-config
|
||||
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ jobs:
|
|||
sudo add-apt-repository ppa:oibaf/graphics-drivers -y
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
|
||||
libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers libdbus-1-dev pkg-config
|
||||
|
||||
- name: Download mdbook
|
||||
run: |
|
||||
|
|
|
|||
2
.github/workflows/rust.yml
vendored
2
.github/workflows/rust.yml
vendored
|
|
@ -32,7 +32,7 @@ jobs:
|
|||
# install dependencies
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
libegl-mesa0 libgl1-mesa-dri libxcb-xfixes0-dev vulkan-sdk mesa-vulkan-drivers
|
||||
libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers libdbus-1-dev pkg-config
|
||||
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -384,7 +384,7 @@ pub trait IntoAnimate: Sized + Send + Sync {
|
|||
/// Invokes `on_complete` after this animation finishes.
|
||||
fn on_complete<F>(self, on_complete: F) -> OnCompleteAnimation<Self>
|
||||
where
|
||||
F: FnMut() + Send + Sync + 'static,
|
||||
F: FnOnce() + Send + Sync + 'static,
|
||||
{
|
||||
OnCompleteAnimation::new(self, on_complete)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,10 +8,10 @@ use kludgine::app::winit::error::EventLoopError;
|
|||
use kludgine::app::{AppEvent, AsApplication, Monitors};
|
||||
use parking_lot::{Mutex, MutexGuard};
|
||||
|
||||
use crate::animation;
|
||||
use crate::fonts::FontCollection;
|
||||
use crate::window::sealed::WindowCommand;
|
||||
use crate::window::WindowHandle;
|
||||
use crate::{animation, initialize_tracing};
|
||||
|
||||
/// A Cushy application that has not started running yet.
|
||||
pub struct PendingApp {
|
||||
|
|
@ -73,6 +73,7 @@ impl Run for PendingApp {
|
|||
|
||||
impl Default for PendingApp {
|
||||
fn default() -> Self {
|
||||
initialize_tracing();
|
||||
Self::new(DefaultRuntime::default())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ use crate::widget::{
|
|||
};
|
||||
use crate::widgets::shortcuts::{ShortcutKey, ShortcutMap};
|
||||
use crate::window::sealed::WindowCommand;
|
||||
use crate::{initialize_tracing, App, ConstraintLimit};
|
||||
use crate::{App, ConstraintLimit};
|
||||
|
||||
/// A platform-dependent window implementation.
|
||||
pub trait PlatformWindowImplementation {
|
||||
|
|
@ -1102,7 +1102,6 @@ where
|
|||
Behavior: WindowBehavior,
|
||||
{
|
||||
fn run(self) -> crate::Result {
|
||||
initialize_tracing();
|
||||
let mut app = PendingApp::default();
|
||||
self.open(&mut app)?;
|
||||
app.run()
|
||||
|
|
|
|||
Loading…
Reference in a new issue