Skip to content

Commit 4f367de

Browse files
committed
WIP: Vendor external
1 parent d0d9913 commit 4f367de

File tree

98 files changed

+352
-9567
lines changed

Some content is hidden

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

98 files changed

+352
-9567
lines changed

.ci/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ set -e
66
ZIG_ARCH=$1
77
OPTIMIZE=$2
88

9-
zig/bin/${ZIG_ARCH}/zig build init
9+
zig build init
1010

1111
function build() {
1212
WITH_TRACY=$1
1313
WITH_NFD=$2
1414
WITH_SHADERC=$3
15-
zig/bin/${ZIG_ARCH}/zig build -Doptimize=${OPTIMIZE} -Dwith_tracy=${WITH_TRACY} -Dwith_nfd=${WITH_NFD} -Dwith_shaderc=${WITH_SHADERC}
15+
zig build -Doptimize=${OPTIMIZE} -Dwith_tracy=${WITH_TRACY} -Dwith_nfd=${WITH_NFD} -Dwith_shaderc=${WITH_SHADERC}
1616
}
1717

1818
build true true false

.ci/init_zig.sh

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

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ permissions:
1818
env:
1919
INSTANCE: Writerside/cetech1
2020
ARTIFACT: webHelpCETECH12-all.zip
21-
DOCKER_VERSION: "242.21870"
21+
DOCKER_VERSION: "243.22562"
2222

2323
jobs:
2424
build:

.github/workflows/test.yaml

Lines changed: 16 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,19 @@ jobs:
2929
steps:
3030
- name: Checkout
3131
uses: actions/checkout@v4
32-
with:
33-
submodules: true
3432

3533
- name: Read .zig-version
3634
id: zigversion
3735
uses: juliangruber/read-file-action@v1
3836
with:
3937
path: ./.zigversion
40-
- name: Cache zig binary
41-
id: cache-zig
42-
uses: actions/cache@v4
38+
- name: Install Zig
39+
uses: mlugg/setup-zig@v1
4340
with:
44-
path: zig/bin/x86_64-linux/zig
45-
key: ${{ runner.arch }}-${{ runner.os }}-zig-${{ steps.zigversion.outputs.content }}
46-
- name: Init zig
47-
if: steps.cache-zig.outputs.cache-hit != 'true'
48-
run: .ci/init_zig.sh x86_64-linux
41+
version: ${{ steps.zigversion.outputs.content }}
4942

5043
- name: Lint
51-
run: zig/bin/x86_64-linux/zig fmt --check . --exclude externals/
44+
run: zig fmt --check . --exclude externals/
5245

5346
x86-64-linux:
5447
needs: ["validation"]
@@ -61,7 +54,6 @@ jobs:
6154
with:
6255
submodules: true
6356

64-
6557
- name: Prepare
6658
uses: awalsh128/cache-apt-pkgs-action@latest
6759
with:
@@ -75,12 +67,10 @@ jobs:
7567
uses: juliangruber/read-file-action@v1
7668
with:
7769
path: ./.zigversion
78-
- name: Cache zig binary
79-
id: cache-zig
80-
uses: actions/cache@v4
70+
- name: Install Zig
71+
uses: mlugg/setup-zig@v1
8172
with:
82-
path: zig/bin/x86_64-linux/zig
83-
key: ${{ runner.arch }}-${{ runner.os }}-zig-${{ steps.zigversion.outputs.content }}
73+
version: ${{ steps.zigversion.outputs.content }}
8474

8575
- name: Zig cache
8676
uses: actions/cache/restore@v4
@@ -94,10 +84,6 @@ jobs:
9484
# path: .zig-cache
9585
# key: ${{ runner.arch }}-${{ runner.os }}-zig-build-cache
9686

97-
- name: Init zig
98-
if: steps.cache-zig.outputs.cache-hit != 'true'
99-
run: .ci/init_zig.sh x86_64-linux
100-
10187
- name: Build
10288
run: .ci/build.sh x86_64-linux Debug
10389

@@ -137,7 +123,6 @@ jobs:
137123
# - name: Setup headless display
138124
# uses: pyvista/setup-headless-display-action@v2
139125

140-
# TODO: Fix linux CI
141126
- name: Test headless standalone
142127
run: zig-out/bin/cetech1 --headless --max-kernel-tick 5
143128

@@ -168,7 +153,7 @@ jobs:
168153
with:
169154
submodules: true
170155

171-
# - name: Prepare
156+
# - name: Prepare`
172157
# run: |
173158
# brew update
174159
# brew install kcov
@@ -178,13 +163,10 @@ jobs:
178163
uses: juliangruber/read-file-action@v1
179164
with:
180165
path: ./.zigversion
181-
182-
- name: Cache zig binary
183-
id: cache-zig
184-
uses: actions/cache@v4
166+
- name: Install Zig
167+
uses: mlugg/setup-zig@v1
185168
with:
186-
path: zig/bin/x86_64-macos/zig
187-
key: ${{ runner.arch }}-${{ runner.os }}-zig-${{ steps.zigversion.outputs.content }}
169+
version: ${{ steps.zigversion.outputs.content }}
188170

189171
- name: Zig cache
190172
uses: actions/cache/restore@v4
@@ -197,10 +179,6 @@ jobs:
197179
# with:
198180
# path: .zig-cache
199181
# key: ${{ runner.arch }}-${{ runner.os }}-zig-build-cache
200-
201-
- name: Init zig
202-
if: steps.cache-zig.outputs.cache-hit != 'true'
203-
run: .ci/init_zig.sh x86_64-macos
204182

205183
- name: Build
206184
run: .ci/build.sh x86_64-macos Debug
@@ -258,19 +236,17 @@ jobs:
258236
uses: actions/checkout@v4
259237
with:
260238
submodules: true
261-
239+
262240
- name: Read .zig-version
263241
id: zigversion
264242
uses: juliangruber/read-file-action@v1
265243
with:
266244
path: ./.zigversion
267-
- name: Cache zig binary
268-
id: cache-zig
269-
uses: actions/cache@v4
245+
- name: Install Zig
246+
uses: mlugg/setup-zig@v1
270247
with:
271-
path: zig/bin/x86_64-windows/zig.exe
272-
key: ${{ runner.arch }}-${{ runner.os }}-zig-${{ steps.zigversion.outputs.content }}
273-
248+
version: ${{ steps.zigversion.outputs.content }}
249+
274250
- name: Zig cache
275251
uses: actions/cache/restore@v4
276252
with:
@@ -283,11 +259,6 @@ jobs:
283259
# path: .zig-cache
284260
# key: ${{ runner.arch }}-${{ runner.os }}-zig-build-cache
285261

286-
- name: Init zig
287-
if: steps.cache-zig.outputs.cache-hit != 'true'
288-
shell: bash
289-
run: .ci/init_zig.sh x86_64-windows
290-
291262
- name: Build
292263
shell: bash
293264
run: .ci/build.sh x86_64-windows Debug
@@ -300,7 +271,6 @@ jobs:
300271
overwrite: true
301272
retention-days: 1
302273

303-
304274
- name: Zig cache
305275
uses: actions/cache/save@v4
306276
with:

.gitmodules

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,3 @@
1-
[submodule "externals/shared/lib/zig-gamedev"]
2-
path = externals/shared/lib/zig-gamedev
3-
url = https://github.com/OndraVoves/zig-gamedev.git
4-
[submodule "externals/shared/tools/zls"]
5-
path = externals/shared/tools/zls
6-
url = https://github.com/zigtools/zls.git
7-
[submodule "externals/shared/lib/SDL_GameControllerDB"]
8-
path = externals/shared/lib/SDL_GameControllerDB
9-
url = https://github.com/mdqinc/SDL_GameControllerDB.git
10-
[submodule "zig"]
11-
path = zig
12-
url = https://github.com/cyberegoorg/cetech1-zig.git
13-
[submodule "externals/shared/lib/zbgfx"]
14-
path = externals/shared/lib/zbgfx
15-
url = https://github.com/cyberegoorg/zbgfx.git
16-
[submodule "externals/shared/lib/ziglang-set"]
17-
path = externals/shared/lib/ziglang-set
18-
url = https://github.com/deckarep/ziglang-set
19-
[submodule "externals/shared/lib/zig-uuid"]
20-
path = externals/shared/lib/zig-uuid
21-
url = https://github.com/tensorush/zig-uuid.git
22-
[submodule "externals/shared/lib/zf"]
23-
path = externals/shared/lib/zf
24-
url = https://github.com/OndraVoves/zf.git
1+
[submodule "externals/shared"]
2+
path = externals/shared
3+
url = https://github.com/cyberegoorg/cetech1-externals-shared.git

.idea/.gitignore

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.zigversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.14.0-dev.1911+3bf89f55c
1+
2024.10.0-mach

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@
55

66
Yet another experimental game engine but now in [zig](https://ziglang.org).
77

8+
> [!IMPORTANT]
9+
> Work in progressssssssssssss
10+
811
## [Getting started](https://cyberegoorg.github.io/cetech1/getting-started.html)
912

1013
## [Documentation](https://cyberegoorg.github.io/cetech1)
11-
12-
## Credits/Licenses For Fonts Included In Repository
13-
14-
Some fonts files are available in the `src/embed/fonts/` folder:
15-
16-
- **[Roboto-Medium.ttf](https://fonts.google.com/specimen/Roboto)** - Apache License 2.0
17-
- **[fa-solid-900.ttf](https://fontawesome.com)** - SIL OFL 1.1 License
18-
- **[fa-regular-400.ttf](https://fontawesome.com)** - SIL OFL 1.1 License
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
zig/bin/<ARCH>/zig build
1+
zig build

0 commit comments

Comments
 (0)