diff --git a/.github/workflows/rust_linux.yml b/.github/workflows/rust_linux.yml index abe9791..a4a4b4a 100644 --- a/.github/workflows/rust_linux.yml +++ b/.github/workflows/rust_linux.yml @@ -25,7 +25,4 @@ jobs: run: cd gdrust && cargo test --all - name: Run tests Release run: cd gdrust && cargo test --all --release - - name: Install Godot - run: wget https://github.com/godotengine/godot/releases/download/4.2.2-stable/Godot_v4.2.2-stable_linux.x86_64.zip && unzip Godot_v4.2.2-stable_linux.x86_64.zip && mv ./Godot_v4.2.2-stable_linux.x86_64 ./godot - - name: Godot Test - run: cd script && python godot_test.py + diff --git a/gdrust/Cargo.toml b/gdrust/Cargo.toml index 279c82d..bc0c0fd 100644 --- a/gdrust/Cargo.toml +++ b/gdrust/Cargo.toml @@ -17,9 +17,5 @@ lto = true codegen-units = 1 strip = true -[profile.action] -inherits = "dev" -features = ["action"] - [workspace] members = [".", "derive"] diff --git a/gdrust/src/fight.rs b/gdrust/src/fight.rs index 643c132..26003fb 100644 --- a/gdrust/src/fight.rs +++ b/gdrust/src/fight.rs @@ -113,10 +113,6 @@ impl Fight { #[func] fn end_fight(&mut self) { - #[cfg(feature = "action")] - { - self.exit_tree(); - } godot_print!("end fight") } } diff --git a/script/godot_test.py b/script/godot_test.py index 4387ced..f5372f7 100644 --- a/script/godot_test.py +++ b/script/godot_test.py @@ -3,10 +3,13 @@ """ import os + from utils import msg_system -def test_scene(path:str): - msg_system(f"godot --headless {path}", "Run failed") + +def test_scene(path: str): + msg_system(f"./godot --headless {path}", "Run failed") + os.chdir("..") with open("test_scene", "r") as files: @@ -15,4 +18,4 @@ def test_scene(path:str): if not i.endswith(".tscn"): print(f"Warning:{i} is not a .tscn file.Ignore") continue - test_scene(i) \ No newline at end of file + test_scene(i)