Skip to content

Commit b9ccff1

Browse files
Update actions
1 parent 2c54b12 commit b9ccff1

File tree

2 files changed

+182
-15
lines changed

2 files changed

+182
-15
lines changed

.github/workflows/godot-ci.yml

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
name: "godot-ci export"
2+
on: push
3+
4+
# NOTE: If your `project.godot` is at the repository root, set `PROJECT_PATH` below to ".".
5+
6+
env:
7+
GODOT_VERSION: 4.4.1
8+
EXPORT_NAME: inventory-system
9+
PROJECT_PATH: .
10+
11+
jobs:
12+
export-windows:
13+
name: Windows Export
14+
runs-on: ubuntu-22.04 # Use 22.04 with godot 4
15+
container:
16+
image: barichello/godot-ci:4.3
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
with:
21+
lfs: true
22+
- name: Setup
23+
run: |
24+
mkdir -v -p ~/.local/share/godot/export_templates/
25+
mkdir -v -p ~/.config/
26+
mv /root/.config/godot ~/.config/godot
27+
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
28+
- name: Windows Build
29+
run: |
30+
mkdir -v -p build/windows
31+
EXPORT_DIR="$(readlink -f build)"
32+
cd $PROJECT_PATH
33+
godot --headless --verbose --export-release "Windows Desktop" "$EXPORT_DIR/windows/$EXPORT_NAME.exe"
34+
- name: Upload Artifact
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: windows
38+
path: build/windows
39+
40+
export-linux:
41+
name: Linux Export
42+
runs-on: ubuntu-22.04 # Use 22.04 with godot 4
43+
container:
44+
image: barichello/godot-ci:4.3
45+
steps:
46+
- name: Checkout
47+
uses: actions/checkout@v4
48+
with:
49+
lfs: true
50+
- name: Setup
51+
run: |
52+
mkdir -v -p ~/.local/share/godot/export_templates/
53+
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
54+
- name: Linux Build
55+
run: |
56+
mkdir -v -p build/linux
57+
EXPORT_DIR="$(readlink -f build)"
58+
cd $PROJECT_PATH
59+
godot --headless --verbose --export-release "Linux/X11" "$EXPORT_DIR/linux/$EXPORT_NAME.x86_64"
60+
- name: Upload Artifact
61+
uses: actions/upload-artifact@v4
62+
with:
63+
name: linux
64+
path: build/linux
65+
66+
# export-web:
67+
# name: Web Export
68+
# runs-on: ubuntu-22.04 # Use 22.04 with godot 4
69+
# container:
70+
# image: barichello/godot-ci:4.3
71+
# steps:
72+
# - name: Checkout
73+
# uses: actions/checkout@v4
74+
# with:
75+
# lfs: true
76+
# - name: Setup
77+
# run: |
78+
# mkdir -v -p ~/.local/share/godot/export_templates/
79+
# mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
80+
# - name: Web Build
81+
# run: |
82+
# mkdir -v -p build/web
83+
# EXPORT_DIR="$(readlink -f build)"
84+
# cd $PROJECT_PATH
85+
# godot --headless --verbose --export-release "Web" "$EXPORT_DIR/web/index.html"
86+
# - name: Upload Artifact
87+
# uses: actions/upload-artifact@v4
88+
# with:
89+
# name: web
90+
# path: build/web
91+
# - name: Install rsync 📚
92+
# run: |
93+
# apt-get update && apt-get install -y rsync
94+
# - name: Deploy to GitHub Pages 🚀
95+
# uses: JamesIves/github-pages-deploy-action@releases/v4
96+
# with:
97+
# branch: gh-pages # The branch the action should deploy to.
98+
# folder: build/web # The folder the action should deploy.
99+
100+
# export-mac:
101+
# name: Mac Export
102+
# runs-on: ubuntu-22.04 # Use 22.04 with godot 4
103+
# container:
104+
# image: barichello/godot-ci:4.3
105+
# steps:
106+
# - name: Checkout
107+
# uses: actions/checkout@v4
108+
# with:
109+
# lfs: true
110+
# - name: Setup
111+
# run: |
112+
# mkdir -v -p ~/.local/share/godot/export_templates/
113+
# mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
114+
# - name: Mac Build
115+
# run: |
116+
# mkdir -v -p build/mac
117+
# EXPORT_DIR="$(readlink -f build)"
118+
# cd $PROJECT_PATH
119+
# godot --headless --verbose --export-release "macOS" "$EXPORT_DIR/mac/$EXPORT_NAME.zip"
120+
# - name: Upload Artifact
121+
# uses: actions/upload-artifact@v4
122+
# with:
123+
# name: mac
124+
# path: build/mac

export_presets.cfg

Lines changed: 58 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,120 @@
11
[preset.0]
22

3-
name="win"
3+
name="Windows Desktop"
44
platform="Windows Desktop"
55
runnable=true
6+
advanced_options=true
7+
dedicated_server=false
68
custom_features=""
79
export_filter="all_resources"
810
include_filter=""
911
exclude_filter=""
1012
export_path="./something.exe"
13+
patches=PackedStringArray()
1114
encryption_include_filters=""
1215
encryption_exclude_filters=""
16+
seed=0
1317
encrypt_pck=false
1418
encrypt_directory=false
1519
script_export_mode=1
16-
script_encryption_key=""
1720

1821
[preset.0.options]
1922

2023
custom_template/debug=""
2124
custom_template/release=""
22-
debug/export_console_script=1
25+
debug/export_console_wrapper=1
2326
binary_format/embed_pck=false
24-
texture_format/bptc=false
25-
texture_format/s3tc=true
26-
texture_format/etc=false
27-
texture_format/etc2=false
28-
texture_format/no_bptc_fallbacks=true
27+
texture_format/s3tc_bptc=true
28+
texture_format/etc2_astc=false
2929
binary_format/architecture="x86_64"
3030
codesign/enable=false
31-
codesign/identity_type=0
32-
codesign/identity=""
33-
codesign/password=""
3431
codesign/timestamp=true
3532
codesign/timestamp_server_url=""
3633
codesign/digest_algorithm=1
3734
codesign/description=""
3835
codesign/custom_options=PackedStringArray()
3936
application/modify_resources=false
4037
application/icon="res://icon.ico"
38+
application/console_wrapper_icon=""
39+
application/icon_interpolation=4
4140
application/file_version=""
4241
application/product_version=""
4342
application/company_name=""
4443
application/product_name=""
4544
application/file_description=""
4645
application/copyright=""
4746
application/trademarks=""
47+
application/export_angle=0
48+
application/export_d3d12=0
49+
application/d3d12_agility_sdk_multiarch=true
50+
ssh_remote_deploy/enabled=false
51+
ssh_remote_deploy/host="user@host_ip"
52+
ssh_remote_deploy/port="22"
53+
ssh_remote_deploy/extra_args_ssh=""
54+
ssh_remote_deploy/extra_args_scp=""
55+
ssh_remote_deploy/run_script="Expand-Archive -LiteralPath '{temp_dir}\\{archive_name}' -DestinationPath '{temp_dir}'
56+
$action = New-ScheduledTaskAction -Execute '{temp_dir}\\{exe_name}' -Argument '{cmd_args}'
57+
$trigger = New-ScheduledTaskTrigger -Once -At 00:00
58+
$settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries
59+
$task = New-ScheduledTask -Action $action -Trigger $trigger -Settings $settings
60+
Register-ScheduledTask godot_remote_debug -InputObject $task -Force:$true
61+
Start-ScheduledTask -TaskName godot_remote_debug
62+
while (Get-ScheduledTask -TaskName godot_remote_debug | ? State -eq running) { Start-Sleep -Milliseconds 100 }
63+
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue"
64+
ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue
65+
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue
66+
Remove-Item -Recurse -Force '{temp_dir}'"
67+
debug/export_console_script=1
68+
texture_format/bptc=false
69+
texture_format/s3tc=true
70+
texture_format/etc=false
71+
texture_format/etc2=false
72+
texture_format/no_bptc_fallbacks=true
4873

4974
[preset.1]
5075

5176
name="Linux/X11"
52-
platform="Linux/X11"
77+
platform="Linux"
5378
runnable=true
79+
advanced_options=false
80+
dedicated_server=false
5481
custom_features=""
5582
export_filter="all_resources"
5683
include_filter=""
5784
exclude_filter=""
5885
export_path="./linux.x86_64"
86+
patches=PackedStringArray()
5987
encryption_include_filters=""
6088
encryption_exclude_filters=""
89+
seed=0
6190
encrypt_pck=false
6291
encrypt_directory=false
6392
script_export_mode=1
64-
script_encryption_key=""
6593

6694
[preset.1.options]
6795

6896
custom_template/debug=""
6997
custom_template/release=""
70-
debug/export_console_script=1
98+
debug/export_console_wrapper=1
7199
binary_format/embed_pck=false
100+
texture_format/s3tc_bptc=true
101+
texture_format/etc2_astc=false
102+
binary_format/architecture="x86_64"
103+
ssh_remote_deploy/enabled=false
104+
ssh_remote_deploy/host="user@host_ip"
105+
ssh_remote_deploy/port="22"
106+
ssh_remote_deploy/extra_args_ssh=""
107+
ssh_remote_deploy/extra_args_scp=""
108+
ssh_remote_deploy/run_script="#!/usr/bin/env bash
109+
export DISPLAY=:0
110+
unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\"
111+
\"{temp_dir}/{exe_name}\" {cmd_args}"
112+
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
113+
kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\")
114+
rm -rf \"{temp_dir}\""
115+
debug/export_console_script=1
72116
texture_format/bptc=false
73117
texture_format/s3tc=true
74118
texture_format/etc=false
75119
texture_format/etc2=false
76120
texture_format/no_bptc_fallbacks=true
77-
binary_format/architecture="x86_64"

0 commit comments

Comments
 (0)