3 Commits

Author SHA1 Message Date
b089f5bf26 call dedicated host with call_deferred
All checks were successful
Build Godot Project1 / godot (cadastery-server.x86_64, server) (push) Successful in 26s
Build Godot Project1 / godot (cadastery.exe, windows) (push) Successful in 26s
Build Godot Project1 / godot (cadastery.x86_64, linux) (push) Successful in 22s
Build Godot Project1 / godot (cadastery.zip, mac) (push) Successful in 31s
2025-02-12 22:54:10 +10:00
a498a3a69f rename server export file 2025-02-12 22:46:01 +10:00
ebab6b6f13 add server to github ci
All checks were successful
Build Godot Project1 / godot (cadastery.exe, windows) (push) Successful in 2m13s
Build Godot Project1 / godot (cadastery.x86_64, linux) (push) Successful in 22s
Build Godot Project1 / godot (cadastery.x86_64, server) (push) Successful in 21s
Build Godot Project1 / godot (cadastery.zip, mac) (push) Successful in 35s
2025-02-12 22:41:57 +10:00
2 changed files with 5 additions and 3 deletions

View File

@@ -11,12 +11,14 @@ jobs:
strategy: strategy:
matrix: matrix:
include: include:
- preset: linux
export_file: cadastery.x86_64
- preset: windows - preset: windows
export_file: cadastery.exe export_file: cadastery.exe
- preset: linux
export_file: cadastery.x86_64
- preset: mac - preset: mac
export_file: cadastery.zip export_file: cadastery.zip
- preset: server
export_file: cadastery-server.x86_64
permissions: write-all permissions: write-all
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

View File

@@ -9,7 +9,7 @@ extends Panel
func _ready() -> void: func _ready() -> void:
if OS.has_feature("dedicated_server") or DisplayServer.get_name() == "headless": if OS.has_feature("dedicated_server") or DisplayServer.get_name() == "headless":
Networker.host_game(true) Networker.call_deferred("host_game", true)
return return
_host_button.pressed.connect(_on_host_button_pressed) _host_button.pressed.connect(_on_host_button_pressed)