Skip to content

Commit

Permalink
added some missing mono-support stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Bioblaze committed Nov 24, 2024
1 parent 641f2fb commit cfe085d
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 11 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/android_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ jobs:
mkdir -p modules/mono/glue/GodotSharp/GodotSharpEditor
# Move the extracted folders to their target locations
mv temp_extract/GodotSharp/* modules/mono/glue/GodotSharp/GodotSharp/
mv temp_extract/GodotSharpEditor/* modules/mono/glue/GodotSharp/GodotSharpEditor/
cp -r temp_extract/GodotSharp/. modules/mono/glue/GodotSharp/GodotSharp/
cp -r temp_extract/GodotSharpEditor/. modules/mono/glue/GodotSharp/GodotSharpEditor/
# Clean up the temporary directory
rm -rf temp_extract monoglue.tar.gz
Expand All @@ -212,6 +212,13 @@ jobs:
target: ${{ matrix.target }}
tests: ${{ matrix.tests }}

- name: Building C# Assemblies
if: matrix.mono
run: |
pushd platform/android/java
./gradlew generateGodotMonoTemplates
popd
- name: Save Godot build cache
uses: ./.github/actions/godot-cache-save
with:
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/linux_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,19 +259,25 @@ jobs:
mkdir -p modules/mono/glue/GodotSharp/GodotSharpEditor
# Move the extracted folders to their target locations
mv temp_extract/GodotSharp/* modules/mono/glue/GodotSharp/GodotSharp/
mv temp_extract/GodotSharpEditor/* modules/mono/glue/GodotSharp/GodotSharpEditor/
cp -r temp_extract/GodotSharp/. modules/mono/glue/GodotSharp/GodotSharp/
cp -r temp_extract/GodotSharpEditor/. modules/mono/glue/GodotSharp/GodotSharpEditor/
# Clean up the temporary directory
rm -rf temp_extract monoglue.tar.gz
- name: Compilation
uses: ./.github/actions/godot-build
with:
sconsflags: ${{ env.SCONSFLAGS }} ${{ matrix.sconsflags }}
platform: linuxbsd
target: ${{ matrix.target }}

- name: Building C# Assemblies
if: matrix.mono
run: |
./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=linuxbsd
- name: Save Godot build cache
uses: ./.github/actions/godot-cache-save
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/macos_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ jobs:
mkdir -p modules/mono/glue/GodotSharp/GodotSharpEditor
# Move the extracted folders to their target locations
mv temp_extract/GodotSharp/* modules/mono/glue/GodotSharp/GodotSharp/
mv temp_extract/GodotSharpEditor/* modules/mono/glue/GodotSharp/GodotSharpEditor/
cp -r temp_extract/GodotSharp/. modules/mono/glue/GodotSharp/GodotSharp/
cp -r temp_extract/GodotSharpEditor/. modules/mono/glue/GodotSharp/GodotSharpEditor/
# Clean up the temporary directory
rm -rf temp_extract monoglue.tar.gz
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mono_glue_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ jobs:
mkdir -p combined/GodotSharp
mkdir -p combined/GodotSharpEditor
cp -r ./modules/mono/glue/GodotSharp/GodotSharp/Generated/* combined/GodotSharp/
cp -r ./modules/mono/glue/GodotSharp/GodotSharpEditor/Generated/* combined/GodotSharpEditor
cp -r ./modules/mono/glue/GodotSharp/GodotSharp/Generated combined/GodotSharp/
cp -r ./modules/mono/glue/GodotSharp/GodotSharpEditor/Generated combined/GodotSharpEditor/
cd combined
tar -czvf ../${{ env.DEPLOY_TYPE }}-${{ github.event.client_payload.type || 'nightly' }}.tar.gz .
cd ..
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/windows_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ jobs:
mkdir -p modules/mono/glue/GodotSharp/GodotSharpEditor
# Move the extracted folders to their target locations
mv temp_extract/GodotSharp/* modules/mono/glue/GodotSharp/GodotSharp/
mv temp_extract/GodotSharpEditor/* modules/mono/glue/GodotSharp/GodotSharpEditor/
cp -r temp_extract/GodotSharp/. modules/mono/glue/GodotSharp/GodotSharp/
cp -r temp_extract/GodotSharpEditor/. modules/mono/glue/GodotSharp/GodotSharpEditor/
# Clean up the temporary directory
rm -rf temp_extract monoglue.tar.gz
Expand Down Expand Up @@ -326,6 +326,12 @@ jobs:
platform: windows
target: ${{ matrix.target }}

- name: Building C# Assemblies
if: matrix.mono
run: |
./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=windows
- name: Save Godot build cache
uses: ./.github/actions/godot-cache-save
with:
Expand Down

0 comments on commit cfe085d

Please sign in to comment.