Skip to content

Commit

Permalink
chore: update stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
macjuul committed Oct 13, 2023
1 parent b4dc590 commit 6c452d2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 50 deletions.
66 changes: 17 additions & 49 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
# Update and install dependencies
- name: Install dependencies
run: |
sudo add-apt-repository ppa:kisak/kisak-mesa
sudo add-apt-repository ppa:kisak/kisak-mesa -y
sudo apt-get update
sudo apt-get install \
build-essential pkg-config libx11-dev libxcursor-dev xvfb \
Expand All @@ -53,7 +53,7 @@ jobs:
# Upload cache on completion and check it out now
- name: Load .scons_cache directory
id: mono-glue-cache
id: linux-cache
uses: actions/cache@v3
with:
path: ${{github.workspace}}/.scons_cache/
Expand Down Expand Up @@ -82,14 +82,7 @@ jobs:
- name: Compile Godot
env:
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
run: |
scons -j2 \
verbose=yes \
warnings=all \
werror=yes \
platform=linuxbsd \
target=editor \
module_mono_enabled=yes
run: scons -j2 verbose=yes warnings=all werror=yes platform=linuxbsd target=editor module_mono_enabled=yes

# Generate the mono glue
- name: Generate Mono Glue
Expand Down Expand Up @@ -119,7 +112,7 @@ jobs:
linux-build:
runs-on: "ubuntu-20.04"
name: Linux Editor
name: Godot Linux
needs: mono-glue

strategy:
Expand Down Expand Up @@ -165,7 +158,7 @@ jobs:
# Update and install dependencies
- name: Install dependencies
run: |
sudo add-apt-repository ppa:kisak/kisak-mesa
sudo add-apt-repository ppa:kisak/kisak-mesa -y
sudo apt-get update
sudo apt-get install \
build-essential pkg-config libx11-dev libxcursor-dev xvfb \
Expand All @@ -174,7 +167,7 @@ jobs:
# Upload cache on completion and check it out now
- name: Load .scons_cache directory
id: linux-editor-mono-cache
id: linux-cache
uses: actions/cache@v3
with:
path: ${{github.workspace}}/.scons_cache/
Expand Down Expand Up @@ -215,15 +208,7 @@ jobs:
- name: Compilation
env:
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
run: |
scons -j2 \
verbose=yes \
warnings=all \
werror=no \
platform=linuxbsd \
target=${{matrix.target}} \
module_mono_enabled=yes \
production=yes
run: scons -j2 verbose=yes warnings=all werror=no platform=linuxbsd target=${{matrix.target}} module_mono_enabled=yes production=yes

# Rename executable
- name: Rename executable
Expand All @@ -239,7 +224,7 @@ jobs:
windows-build:
runs-on: "windows-latest"
name: Windows Editor
name: Godot Windows
needs: mono-glue

strategy:
Expand Down Expand Up @@ -288,7 +273,7 @@ jobs:
# Upload cache on completion and check it out now
# Editing this is pretty dangerous for Windows since it can break and needs to be properly tested with a fresh cache.
- name: Load .scons_cache directory
id: windows-editor-mono-cache
id: windows-cache
uses: actions/cache@v3
with:
path: /.scons_cache/
Expand Down Expand Up @@ -330,21 +315,13 @@ jobs:
env:
SCONS_CACHE_MSVC_CONFIG: true
SCONS_CACHE: /.scons_cache/
run: |
scons -j2 \
verbose=yes \
warnings=all \
werror=no \
platform=windows \
target=${{matrix.target}} \
module_mono_enabled=yes \
production=yes
run: scons -j2 verbose=yes warnings=all werror=no platform=windows target=${{matrix.target}} module_mono_enabled=yes production=yes

# Rename executable
- name: Rename executable
run: |
mv ./bin/${{matrix.executable_name}}.exe ./bin/Godot.exe
mv ./bin/${{matrix.executable_name}}.console.exe ./bin/GodotConsole.exe
mv -Force ./bin/${{matrix.executable_name}}.exe ./bin/Godot.exe
mv -Force ./bin/${{matrix.executable_name}}.console.exe ./bin/GodotConsole.exe
# Make build available
- uses: actions/upload-artifact@v3
Expand All @@ -357,9 +334,8 @@ jobs:
macos-build:
runs-on: "macos-latest"
name: MacOS Editor
name: Godot MacOS
needs: mono-glue
continue-on-error: true

strategy:
matrix:
Expand Down Expand Up @@ -403,7 +379,7 @@ jobs:
# Upload cache on completion and check it out now
- name: Load .scons_cache directory
id: linux-editor-mono-cache
id: macos-cache
uses: actions/cache@v3
with:
path: ${{github.workspace}}/.scons_cache/
Expand Down Expand Up @@ -449,15 +425,7 @@ jobs:
- name: Compilation
env:
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
run: |
scons -j2 \
verbose=yes \
warnings=all \
werror=no \
platform=macos \
target=${{matrix.target}} \
module_mono_enabled=yes \
production=yes
run: scons -j2 verbose=yes warnings=all werror=no platform=macos target=${{matrix.target}} module_mono_enabled=yes production=yes

# Rename executable
- name: Rename executable
Expand All @@ -466,7 +434,7 @@ jobs:
# Make build available
- uses: actions/upload-artifact@v3
with:
name: linuxbsd-${{matrix.target}}
name: macos-${{matrix.target}}
path: |
bin/GodotSharp
bin/Godot
Expand Down Expand Up @@ -507,5 +475,5 @@ jobs:
--password ${{ secrets.GITHUB_TOKEN }} \
--store-password-in-clear-text \
--name github \
"https://nuget.pkg.github.com/${{env.GITHUB_USERNAME}}/index.json" \
"https://nuget.pkg.github.com/${{env.GITHUB_USERNAME}}/index.json"
find ./GodotSharp/Tools/nupkgs -name "*.nupkg" -exec dotnet nuget push {} --api-key ${{ secrets.GITHUB_TOKEN }} --source github \;
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,18 @@ This repository houses the Godot builds and compiling workflows for the modified
## Notable modifications
- Only builds .NET enabled builds
- Includes [Godot Voxel](https://github.com/Zylann/godot_voxel) module
- Modified branding
- Modified branding

## NuGet packages
In order to use the NuGet packages published to GitHub, you will have to execute the following command

```
dotnet nuget add source \
--username YOUR_GITHUB_USERNAME \
--password YOUR_GITHUB_PAT \
--store-password-in-clear-text \
--name GitHub \
"https://nuget.pkg.github.com/macjuul/index.json"
```

Set `YOUR_GITHUB_PAT` to a personal access token generated with access to packages.

0 comments on commit 6c452d2

Please sign in to comment.