generated from nathanfranke/gdextension
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f58b73
commit 6a83903
Showing
14 changed files
with
186 additions
and
108 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,48 @@ | ||
name: Setup Base Dependencies | ||
description: Setup python and scons | ||
description: Setup base dependencies | ||
inputs: | ||
python-version: | ||
description: The python version to use. | ||
default: "3.x" | ||
python-arch: | ||
description: The python architecture. | ||
default: "x64" | ||
platform: | ||
required: true | ||
description: Target platform. | ||
runs: | ||
using: "composite" | ||
steps: | ||
# Use python 3.x release (works cross platform) | ||
- name: Setup python 3.x | ||
- name: Setup Python 3.x | ||
uses: actions/setup-python@v5 | ||
with: | ||
# Semantic version range syntax or exact version of a Python version | ||
python-version: ${{ inputs.python-version }} | ||
# Optional - x64 or x86 architecture, defaults to x64 | ||
architecture: ${{ inputs.python-arch }} | ||
python-version: 3.x | ||
|
||
- name: Setup scons 4.4 | ||
- name: Setup SCons 4.4 | ||
shell: bash | ||
run: | | ||
python -c "import sys; print(sys.version)" | ||
python -m pip install scons==4.4.0 | ||
scons --version | ||
scons --version | ||
- name: Setup Android Dependencies | ||
if: inputs.platform == 'android' | ||
uses: nttld/setup-ndk@v1 | ||
with: | ||
ndk-version: r23c | ||
link-to-sdk: true | ||
|
||
- name: Setup Windows Dependencies | ||
if: inputs.platform == 'windows' | ||
shell: sh | ||
run: | | ||
sudo apt-get install mingw-w64 | ||
sudo update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix | ||
sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix | ||
- name: Setup Web Dependencies | ||
if: inputs.platform == 'web' | ||
uses: mymindstorm/setup-emsdk@v14 | ||
with: | ||
version: 3.1.64 | ||
no-cache: true | ||
|
||
- name: Verify Emscripten setup | ||
if: inputs.platform == 'web' | ||
shell: bash | ||
run: | | ||
emcc -v |
This file was deleted.
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
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,64 @@ | ||
name: 🌐 Web Builds | ||
on: [ workflow_call, workflow_dispatch ] | ||
|
||
jobs: | ||
build: | ||
name: 🌐 Web ${{ matrix.arch }} ${{ matrix.target }} | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [web] | ||
target: [debug, release] | ||
#threads: [yes, no] | ||
|
||
steps: | ||
- name: Checkout Terrain3D | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup Base Dependencies | ||
uses: ./.github/actions/base-deps | ||
with: | ||
platform: ${{ matrix.platform }} | ||
|
||
- name: Setup Build Cache | ||
uses: ./.github/actions/build-cache | ||
with: | ||
cache-name: ${{ matrix.platform }}-nothreads-${{ matrix.target }} | ||
continue-on-error: true | ||
|
||
- name: Build Terrain3D | ||
env: | ||
SCONS_CACHE: "${{ github.workspace }}/.scons-cache/" | ||
TARGET: 'template_${{ matrix.target }}' | ||
shell: sh | ||
run: | | ||
scons target=$TARGET platform='${{ matrix.platform }}' threads=no debug_symbols=no -j2 | ||
- name: Prepare Files | ||
shell: sh | ||
run: | | ||
ls -l project/addons/terrain_3d/bin/ | ||
cp '${{ github.workspace }}/README.md' '${{ github.workspace }}/LICENSE.txt' ${{ github.workspace }}/project/addons/terrain_3d/ | ||
- name: Upload Package | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
include-hidden-files: true | ||
name: t3d-${{ matrix.platform }}-nothreads-${{ matrix.target }} | ||
path: | | ||
${{ github.workspace }}/project/ | ||
merge: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Merge Artifacts | ||
uses: actions/upload-artifact/merge@v4 | ||
with: | ||
include-hidden-files: true | ||
name: ${{ github.event.repository.name }} | ||
pattern: t3d-* | ||
delete-merged: true |
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
Oops, something went wrong.