-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter, AssetInput, Modal, Create menu, Tags, Multi-select, D&D, Obje…
…ct Buffer
- Loading branch information
1 parent
05a858b
commit ea90759
Showing
123 changed files
with
12,420 additions
and
2,666 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
set -e | ||
|
||
ZIG_ARCH=$1 | ||
OPTIMIZE=$2 | ||
|
||
./zig/lfs_pull.sh ${ZIG_ARCH} | ||
./lfs_pull.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
set -e | ||
|
||
ZIG_ARCH=$1 | ||
TARGET_ZIG_ARCH=$2 | ||
OPTIMIZE=$3 | ||
|
||
./zig/lfs_pull.sh ${ZIG_ARCH} | ||
./lfs_pull.sh | ||
|
||
mkdir -p build/${OPTIMIZE} | ||
|
||
function build() { | ||
WITH_TRACY=$1 | ||
zig/bin/${ZIG_ARCH}/zig build -Dtarget=${TARGET_ZIG_ARCH} -Doptimize=${OPTIMIZE} -Dwith-tracy=${WITH_TRACY} -Dwith-nfd=false --verbose | ||
mv zig-out build/${OPTIMIZE}/${TARGET_ZIG_ARCH} | ||
} | ||
|
||
build false | ||
|
||
ls -Rhan build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
name: "Build & Test" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
#branches: ["main"] | ||
paths: | ||
- "src/**" | ||
- "include/**" | ||
- "externals/**" | ||
- "build.zig" | ||
|
||
concurrency: | ||
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
validation: | ||
name: Validation | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Prepare | ||
run: .ci/init_zig.sh x86_64-linux | ||
- name: Lint | ||
run: zig/bin/x86_64-linux/zig fmt --check . --exclude externals/ | ||
|
||
x86-64-linux: | ||
needs: ["validation"] | ||
name: x86-64 Linux | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Prepare | ||
run: sudo apt-get update && sudo apt-get install libgtk-3-dev kcov | ||
|
||
- name: Build | ||
run: .ci/build.sh x86_64-linux Debug | ||
|
||
- name: Upload build | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: x86-64-linux-bin | ||
path: zig-out/ | ||
overwrite: true | ||
retention-days: 1 | ||
|
||
- name: Run test | ||
run: kcov --include-pattern=cetech1/src/ kcov-output zig-out/bin/cetech1_test | ||
|
||
- name: Upload code coverage report to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
directory: kcov-output | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
slug: cyberegoorg/cetech1 | ||
fail_ci_if_error: true | ||
verbose: true | ||
|
||
- name: Test headless standalone | ||
run: zig-out/bin/cetech1 --headless --max-kernel-tick 5 | ||
|
||
- name: Test headless standalone with asset root | ||
run: zig-out/bin/cetech1 --headless --max-kernel-tick 5 --asset-root tests/test_asset/ | ||
|
||
x86-64-macos: | ||
needs: ["validation"] | ||
name: x86-64 Macos | ||
runs-on: macos-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Prepare | ||
run: | | ||
brew update | ||
brew install kcov | ||
- name: Build | ||
run: .ci/build.sh x86_64-macos Debug | ||
|
||
- name: Upload build | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: x86-64-macos-bin | ||
path: zig-out/ | ||
overwrite: true | ||
retention-days: 1 | ||
|
||
- name: Run test | ||
run: zig-out/bin/cetech1_test | ||
|
||
- name: Test headless standalone | ||
run: zig-out/bin/cetech1 --headless --max-kernel-tick 5 | ||
|
||
- name: Test headless standalone with asset root | ||
run: zig-out/bin/cetech1 --headless --max-kernel-tick 5 --asset-root tests/test_asset/ | ||
|
||
x86-64-windows: | ||
needs: ["validation"] | ||
name: x86-64 Windows | ||
runs-on: windows-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Build | ||
shell: bash | ||
run: .ci/build.sh x86_64-windows Debug | ||
|
||
- name: Upload build | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: x86-64-windows-bin | ||
path: zig-out/ | ||
overwrite: true | ||
retention-days: 1 | ||
|
||
- name: configure Pagefile | ||
uses: al-cheb/[email protected] | ||
with: | ||
minimum-size: 8GB | ||
maximum-size: 16GB | ||
disk-root: "C:" | ||
|
||
- name: Run test with kcov | ||
run: zig-out/bin/cetech1_test.exe | ||
|
||
- name: Test headless standalone | ||
run: zig-out/bin/cetech1.exe --headless --max-kernel-tick 5 | ||
|
||
- name: Test headless standalone with asset root | ||
run: zig-out/bin/cetech1.exe --headless --max-kernel-tick 5 --asset-root tests/test_asset/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
[submodule "bin/zig"] | ||
path = bin/zig | ||
url = https://github.com/cyberegoorg/cetech1-zig.git | ||
[submodule "externals/shared/lib/zig-gamedev"] | ||
path = externals/shared/lib/zig-gamedev | ||
url = https://github.com/OndraVoves/zig-gamedev.git | ||
[submodule "externals/shared/lib/zig-uuid"] | ||
path = externals/shared/lib/zig-uuid | ||
url = https://github.com/tensorush/zig-uuid.git | ||
[submodule "externals/shared/lib/nfd-zig"] | ||
path = externals/shared/lib/nfd-zig | ||
url = https://github.com/fabioarnold/nfd-zig.git | ||
[submodule "externals/shared/lib/zf"] | ||
path = externals/shared/lib/zf | ||
url = https://github.com/natecraddock/zf.git | ||
[submodule "externals/shared/tools/zls"] | ||
path = externals/shared/tools/zls | ||
url = https://github.com/zigtools/zls.git | ||
[submodule "zig"] | ||
path = zig | ||
url = https://github.com/cyberegoorg/cetech1-zig.git | ||
[submodule "externals/shared/lib/mach-gamemode"] | ||
path = externals/shared/lib/mach-gamemode | ||
url = https://github.com/hexops/mach-gamemode.git | ||
[submodule "externals/shared/lib/SDL_GameControllerDB"] | ||
path = externals/shared/lib/SDL_GameControllerDB | ||
url = https://github.com/mdqinc/SDL_GameControllerDB.git |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
command script import <CHANGE_ME_TO_REPODIR>/bin/zig/tools/lldb_pretty_printers.py | ||
command script import <CHANGE_ME_TO_REPODIR>/zig/tools/lldb_pretty_printers.py | ||
type category enable zig | ||
type category enable zig.std |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
job("Hello world") { | ||
git { | ||
// Do not download large files | ||
env["GIT_LFS_SKIP_SMUDGE"] = "1" | ||
} | ||
|
||
container(displayName = "Say hello", image = "hello-world") | ||
} |
Oops, something went wrong.