Skip to content

Commit 3ceb115

Browse files
committed
WIP: Editor & Runner, actions as module
1 parent e70146c commit 3ceb115

File tree

133 files changed

+3158
-1345
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+3158
-1345
lines changed

.ci/build.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

.ci/gen-docs.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.
File renamed without changes.

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
# *.jpg filter=lfs diff=lfs merge=lfs -text
44
# *.ttf filter=lfs diff=lfs merge=lfs -text
55

6+
externals/* linguist-vendored
7+
68
*.zig text eol=lf

.github/workflows/test.yaml

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,13 @@ jobs:
7070

7171
- name: Install Zig
7272
uses: mlugg/setup-zig@v2
73+
74+
- name: Init cetech repo
75+
shell: bash
76+
run: zig build init
77+
7378
- name: Build
74-
run: .ci/build.sh x86_64-linux Debug
79+
run: zig build -Doptimize=Debug -Dwith_shaderc=false
7580

7681
- name: Upload build
7782
uses: actions/upload-artifact@v4
@@ -98,13 +103,13 @@ jobs:
98103
# uses: pyvista/setup-headless-display-action@v2
99104

100105
- name: Test headless standalone
101-
run: zig-out/bin/cetech1 --headless --max-kernel-tick 5
106+
run: zig-out/bin/cetech1_editor --headless --max-kernel-tick 5
102107

103108
- name: Test headless standalone with asset root
104-
run: zig-out/bin/cetech1 --headless --max-kernel-tick 5 --asset-root fixtures/test_asset/
109+
run: zig-out/bin/cetech1_editor --headless --max-kernel-tick 5 --asset-root fixtures/test_asset/
105110

106111
- name: Test UI headless
107-
run: zig-out/bin/cetech1 --headless --test-ui --test-ui-junit ./result.xml
112+
run: zig-out/bin/cetech1_editor --headless --test-ui --test-ui-junit ./result.xml
108113

109114
- name: Publish Test Report
110115
uses: mikepenz/action-junit-report@v4
@@ -134,8 +139,13 @@ jobs:
134139

135140
- name: Install Zig
136141
uses: mlugg/setup-zig@v2
142+
143+
- name: Init cetech repo
144+
shell: bash
145+
run: zig build init
146+
137147
- name: Build
138-
run: .ci/build.sh x86_64-macos Debug
148+
run: zig build -Doptimize=Debug -Dwith_shaderc=false
139149

140150
- name: Upload build
141151
uses: actions/upload-artifact@v4
@@ -150,13 +160,13 @@ jobs:
150160
#run: kcov --include-pattern=/cetech1/src/,/cetech/public/ kcov-output zig-out/bin/cetech1_test
151161

152162
- name: Test headless standalone
153-
run: zig-out/bin/cetech1 --headless --max-kernel-tick 5
163+
run: zig-out/bin/cetech1_editor --headless --max-kernel-tick 5
154164

155165
- name: Test headless standalone with asset root
156-
run: zig-out/bin/cetech1 --headless --max-kernel-tick 5 --asset-root fixtures/test_asset/
166+
run: zig-out/bin/cetech1_editor --headless --max-kernel-tick 5 --asset-root fixtures/test_asset/
157167

158168
- name: Test UI headless
159-
run: zig-out/bin/cetech1 --headless --test-ui --test-ui-junit ./result.xml
169+
run: zig-out/bin/cetech1_editor --headless --test-ui --test-ui-junit ./result.xml
160170

161171
- name: Publish Test Report
162172
uses: mikepenz/action-junit-report@v4
@@ -180,9 +190,13 @@ jobs:
180190
- name: Install Zig
181191
uses: mlugg/setup-zig@v2
182192

193+
- name: Init cetech repo
194+
shell: bash
195+
run: zig build init
196+
183197
- name: Build
184198
shell: bash
185-
run: .ci/build.sh x86_64-windows Debug
199+
run: zig build -Doptimize=Debug -Dwith_shaderc=false
186200

187201
- name: Upload build
188202
uses: actions/upload-artifact@v4
@@ -204,17 +218,15 @@ jobs:
204218
run: zig-out/bin/cetech1_test
205219

206220
# FIXME: Windows
207-
- name: Test headless standalone
208-
shell: bash
209-
run: zig-out/bin/cetech1 --headless --max-kernel-tick 5
210-
211-
- name: Test headless standalone with asset root
212-
shell: bash
213-
run: zig-out/bin/cetech1 --headless --max-kernel-tick 5 --asset-root fixtures/test_asset/
214-
215-
- name: Test UI headless
216-
shell: bash
217-
run: zig-out/bin/cetech1 --headless --test-ui --test-ui-junit ./result.xml
221+
# - name: Test headless standalone
222+
# shell: bash
223+
# run: zig-out/bin/cetech1_editor --headless --max-kernel-tick 5
224+
# - name: Test headless standalone with asset root
225+
# shell: bash
226+
# run: zig-out/bin/cetech1_editor --headless --max-kernel-tick 5 --asset-root fixtures/test_asset/
227+
# - name: Test UI headless
228+
# shell: bash
229+
# run: zig-out/bin/cetech1_editor --headless --test-ui --test-ui-junit ./result.xml
218230

219231
- name: Publish Test Report
220232
uses: mikepenz/action-junit-report@v4

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ _static.zig
3737
.vscode/launch.json
3838
.vscode/settings.json
3939

40-
# Fleet
41-
.fleet/settings.json
42-
.fleet/run.json
43-
4440
# Idea
4541
.idea/
4642
Zig.iml
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
.{
22
.launchers = .{
3+
.{ .name = "CETech1 unit tests", .program = .{ .path = "zig-out/bin/cetech1_test" }, .args = .{} },
34
.{ .name = "CETech1 no asset root", .args = .{} },
45
.{ .name = "CETech1 max 5 tick", .args = .{ "--max-kernel-tick", "5", "--asset-root", "fixtures/test_asset/" } },
56
.{ .name = "CETech1 --headless", .args = .{ "--max-kernel-tick", "5", "--asset-root", "fixtures/test_asset/", "--headless" } },
6-
.{ .name = "CETech1 Tests", .program = "zig-out/bin/cetech1_test", .args = .{} },
77
.{ .name = "CETech1 Tests UI", .args = .{"--test-ui"} },
88
.{ .name = "CETech1 Tests UI (headless)", .args = .{ "--test-ui", "--headless", "--test-ui-junit", "./result.xml" } },
99
.{ .name = "CETech1 (Vulkan)", .args = .{ "--asset-root", "fixtures/test_asset/", "--renderer", "bgfx_vulkan" } },
10+
.{ .name = "CETech1 runner world", .program = .runner, .args = .{ "--asset-root", "fixtures/test_graph/", "--simulate", "0198d6b0-9580-74d8-b06f-e4df9723720a", "--runner-ui" } },
11+
.{ .name = "CETech1 runner explode", .program = .runner, .args = .{ "--asset-root", "fixtures/test_graph/", "--simulate", "0191e6d1-830a-73d8-992a-aa6f9add6d1e", "--simulate-explode", "100", "--runner-ui" } },
1012
},
1113
}

0 commit comments

Comments
 (0)