Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
TokisanGames committed Nov 19, 2023
1 parent 801b31e commit 02d4d35
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 16 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: 🛠️ Build All
on: [push, workflow_dispatch]

concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
build:
name: ${{ matrix.name }}
Expand All @@ -10,66 +14,69 @@ jobs:
matrix:
include:
- identifier: linux-debug
name: Linux Debug
name: 🐧 Linux Debug
runner: ubuntu-20.04
target: template_debug
platform: linux
arch: x86_64

- identifier: linux-release
name: Linux Release
name: 🐧 Linux Release
runner: ubuntu-20.04
target: template_release
platform: linux
arch: x86_64

- identifier: windows-debug
name: Windows Debug
name: 🪟 Windows Debug
runner: ubuntu-20.04
target: template_debug
platform: windows
arch: x86_64

- identifier: windows-release
name: Windows Release
name: 🪟 Windows Release
runner: ubuntu-20.04
target: template_release
platform: windows
arch: x86_64

- identifier: macos-debug
name: macOS Debug
name: 🍎 macOS Debug
runner: macos-latest
target: template_debug
platform: macos

- identifier: macos-release
name: macOS Release
name: 🍎 macOS Release
runner: macos-latest
target: template_release
platform: macos

- identifier: android-debug
name: Android Debug
name: 🤖 Android Debug
runner: ubuntu-20.04
target: template_debug
platform: android
arch: arm64

- identifier: android-release
name: Android Release
name: 🤖 Android Release
runner: ubuntu-20.04
target: template_release
platform: android
arch: arm64

steps:
- name: Checkout Terrain3D
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Windows Dependencies
if: startsWith(matrix.identifier, 'windows-')
uses: ./.github/actions/windows-deps

- name: Setup Android Dependencies
if: startsWith(matrix.identifier, 'android-')
uses: ./.github/actions/android-deps

- name: Setup Base Dependencies
uses: ./.github/actions/base-deps

Expand All @@ -83,7 +90,6 @@ jobs:
shell: sh
env:
SCONS_CACHE: "${{ github.workspace }}/.scons-cache/"
SCONS_CACHE_LIMIT: 7168
run: |
scons target='${{ matrix.target }}' platform='${{ matrix.platform }}' arch='${{ matrix.arch }}' debug_symbols=no -j2
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<img src="https://outobugi.com/images/terrain3d.png">

# Terrain3D
A high performance, editable terrain system for Godot 4, written in C++.
A high performance, editable terrain system for Godot 4.

## Features
* Written in C++ as a GDExtension plugin, which works with official engine builds
Expand All @@ -10,7 +10,7 @@ A high performance, editable terrain system for Godot 4, written in C++.
* Up to 16k x 16k in 1k regions (imagine multiple islands without paying for 16k^2 vram)
* Up to 10 Levels of Detail (LODs)
* Up to 32 texture sets using albedo, normal, roughness, height
* Sculpting, texture painting, texture detiling, painting colors and wetness, undo/redo
* Sculpting, holes, texture painting, texture detiling, painting colors and wetness
* Supports importing heightmaps from [HTerrain](https://github.com/Zylann/godot_heightmap_plugin/), WorldMachine, Unity, Unreal and any tool that can export a heightmap (raw/r16/exr/+). See [importing](https://github.com/TokisanGames/Terrain3D/wiki/Importing-&-Exporting-Data)

See the [Wiki](https://github.com/TokisanGames/Terrain3D/wiki) for project status, design, and usage.
Expand Down
7 changes: 7 additions & 0 deletions Terrain3D.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,19 @@
<None Include=".github\workflows\macos.yml" />
<None Include=".github\workflows\windows.yml" />
<None Include=".gitignore" />
<None Include="AUTHORS.md" />
<None Include="CONTRIBUTING.md" />
<None Include="project\addons\terrain_3d\plugin.cfg" />
<None Include="project\addons\terrain_3d\terrain.gdextension" />
<None Include="README.md" />
<None Include="SConstruct" />
<None Include="src\shaders\debug_views.glsl" />
<None Include="src\shaders\main.glsl" />
<None Include="src\shaders\world_noise.glsl" />
</ItemGroup>
<ItemGroup>
<Text Include="LICENSE.txt" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
14 changes: 14 additions & 0 deletions Terrain3D.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,22 @@
<None Include=".gitignore">
<Filter>1. Project Files</Filter>
</None>
<None Include="AUTHORS.md">
<Filter>1. Project Files</Filter>
</None>
<None Include="CONTRIBUTING.md">
<Filter>1. Project Files</Filter>
</None>
<None Include="README.md">
<Filter>1. Project Files</Filter>
</None>
<None Include="SConstruct">
<Filter>1. Project Files</Filter>
</None>
</ItemGroup>
<ItemGroup>
<Text Include="LICENSE.txt">
<Filter>1. Project Files</Filter>
</Text>
</ItemGroup>
</Project>

0 comments on commit 02d4d35

Please sign in to comment.