Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflows #3

Merged
merged 8 commits into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/dotnet_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Dotnet Build

on:
push:
paths-ignore:
- '**/*.md'
pull_request:
paths-ignore:
- '**/*.md'
workflow_dispatch:
# allows manual trigger

jobs:
build:
runs-on: windows-latest
strategy:
matrix:
# ExportX is only for building godot.
builds: [ 'Debug', 'ExportDebug', 'ExportRelease', 'DebugClient', 'DebugServer' ]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Clone EIV Nuget repository
uses: actions/checkout@v4
with:
repository: ExtractIntoVoid/Nuget
path: eiv_nuget

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

- name: Add eiv_nuget to nuget souce
run: dotnet nuget add source --name eiv_nuget $env:GITHUB_WORKSPACE/eiv_nuget

- name: Publish
run: dotnet publish EIV_Game.csproj -c ${{ matrix.builds }} -o Out

- name: Package
run: dotnet pack EIV_Game.csproj -c ${{ matrix.builds }} -o Out

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: EIV_Game_DOTNET-${{ matrix.builds }}
path: Out
if-no-files-found: error
2 changes: 2 additions & 0 deletions csharp/Managers/BuildDefined.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public static ReleaseType Release
"Server.ini"
#elif CLIENT
"Client.ini"
#else
""
#endif
);
}
4 changes: 3 additions & 1 deletion csharp/Menus/LobbyScene.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using ExtractIntoVoid.Managers;
#if CLIENT || GAME
using ExtractIntoVoid.Managers;
using ExtractIntoVoid.Worlds;
using Godot;

Expand Down Expand Up @@ -30,3 +31,4 @@ public void Quit()
}

}
#endif