Skip to content

Commit a3dbcfd

Browse files
authored
Fix ci out of space (#263)
* Update ci.yaml * Make sure no error throw * Try a more aggressive fix * Pass all checks * default config looks fine * swatinem not cache worksapce, need rebuild everytime * Revert "swatinem not cache worksapce, need rebuild everytime" This reverts commit e6552c1. * Revert "default config looks fine" This reverts commit 3cb2853.
1 parent 1d84f5d commit a3dbcfd

File tree

5 files changed

+34
-18
lines changed

5 files changed

+34
-18
lines changed

.github/workflows/ci.yaml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,33 @@ jobs:
3030
uses: dtolnay/rust-toolchain@stable
3131

3232
- name: Install dependencies
33-
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
33+
run: |
34+
sudo apt-get update
35+
sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
36+
37+
# Uninstall unneeded tools
38+
# .NET
39+
sudo rm -rf /usr/share/dotnet || true
40+
sudo apt-get remove -y '^aspnetcore-.*' || true
41+
sudo apt-get remove -y '^dotnet-.*' --fix-missing || true
42+
# Haskell
43+
sudo rm -rf /opt/ghc || true
44+
sudo rm -rf /usr/local/.ghcup || true
45+
# Android
46+
sudo rm -rf /usr/local/lib/android || true
47+
# PHP
48+
sudo apt-get remove -y 'php.*' --fix-missing || true
49+
# Database
50+
sudo apt-get remove -y '^mongodb-.*' --fix-missing || true
51+
sudo apt-get remove -y '^mysql-.*' --fix-missing || true
52+
# Cloud
53+
sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri --fix-missing || true
54+
sudo apt-get remove -y google-cloud-sdk --fix-missing || true
55+
sudo apt-get remove -y google-cloud-cli --fix-missing || true
56+
57+
# Clean up unused packages
58+
sudo apt-get autoremove -y
59+
sudo apt-get clean
3460
3561
- name: Populate target directory from cache
3662
uses: Leafwing-Studios/cargo-cache@v2

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ serde = { version = "1", features = ["derive"] }
3939
tracing-test = "0.2.5"
4040
tracing = "0.1.41"
4141
atomicow = "1.1.0"
42-
rfd = "0.15.3"
43-
ron = "0.10.1"
42+
rfd = "0.17.2"
43+
ron = "0.12.0"
4444
variadics_please = "1.0"
4545

4646
# local crates

bevy_widgets/bevy_text_editing/src/char_position.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use bevy::prelude::*;
22

33
/// A component that stores a character position in a text
44
/// Separated from `usize` to make it clear that it is a character position, not a byte position.
5-
/// And prevents accidental usage as a byte position in string[..`byte_position`]
5+
/// And prevents accidental usage as a byte position in `string[..byte_position]`
66
#[derive(Reflect, Default, Clone, Copy, Debug)]
77
pub struct CharPosition(pub usize);
88

bevy_widgets/bevy_toolbar/src/lib.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ pub struct ToolbarButton {
4242
}
4343

4444
/// Available editor tools.
45-
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
45+
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
4646
pub enum EditorTool {
4747
/// Selection tool for picking entities.
48+
#[default]
4849
Select,
4950
/// Move tool for translating entities.
5051
Move,
@@ -74,12 +75,6 @@ pub enum EditorTool {
7475
#[derive(Resource, Default)]
7576
pub struct ActiveTool(pub EditorTool);
7677

77-
impl Default for EditorTool {
78-
fn default() -> Self {
79-
Self::Select
80-
}
81-
}
82-
8378
/// Marker component for the gizmo mode status text.
8479
#[derive(Component)]
8580
pub struct GizmoModeStatus;

crates/bevy_transform_gizmos/src/lib.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,22 +71,17 @@ pub struct ScaleGizmo;
7171
pub struct InternalGizmoCamera;
7272

7373
/// Available gizmo modes.
74-
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
74+
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
7575
pub enum GizmoMode {
7676
/// Translation mode (W key).
77+
#[default]
7778
Translate,
7879
/// Rotation mode (E key).
7980
Rotate,
8081
/// Scale mode (R key).
8182
Scale,
8283
}
8384

84-
impl Default for GizmoMode {
85-
fn default() -> Self {
86-
Self::Translate
87-
}
88-
}
89-
9085
/// Settings for the [`TransformGizmoPlugin`].
9186
#[derive(Resource, Clone, Debug)]
9287
pub struct TransformGizmoSettings {

0 commit comments

Comments
 (0)