Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
limuy2022 committed May 31, 2024
1 parent 09a6f37 commit bc0fac2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/rust_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
- name: Build
run: cd gdrust && cargo build --all
- name: Build Release
run: cargo build --all --release
run: cd gdrust && cargo build --all --release
- name: Run tests Debug
run: cargo test --all
run: cd gdrust && cargo test --all
- name: Run tests Release
run: cargo test --all --release
run: cd gdrust && cargo test --all --release
6 changes: 3 additions & 3 deletions .github/workflows/rust_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
- name: Build
run: cd gdrust && cargo build --all
- name: Build Release
run: cargo build --all --release
run: cd gdrust && cargo build --all --release
- name: Run tests Debug
run: cargo test --all
run: cd gdrust && cargo test --all
- name: Run tests Release
run: cargo test --all --release
run: cd gdrust && cargo test --all --release

6 changes: 3 additions & 3 deletions .github/workflows/rust_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
- name: Build
run: cd gdrust && cargo build --all
- name: Build Release
run: cargo build --all --release
run: cd gdrust && cargo build --all --release
- name: Run tests Debug
run: cargo test --all
run: cd gdrust && cargo test --all
- name: Run tests Release
run: cargo test --release --all
run: cd gdrust && cargo test --release --all
8 changes: 4 additions & 4 deletions gdrust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ impl ISprite2D for Player {
vel.x -= 1.0;
}
if input_obj.is_action_pressed("move_right".into()) {
vel.x += 1.0;
vel.x += 1.0;
}
if input_obj.is_action_pressed("move_up".into()) {
vel.y -= 1.0;
vel.y -= 1.0;
}
if input_obj.is_action_pressed("move_down".into()) {
vel.y += 1.0;
vel.y += 1.0;
}
}
}

#[godot_api]
impl Player {
#[constant]
const SPEED: i32 = 50;
const SPEED:i32 = 50;
}

0 comments on commit bc0fac2

Please sign in to comment.