Skip to content

Commit

Permalink
Add action build for .NET framework 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Apr 27, 2024
1 parent b50073d commit 2c05bb0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/build.yml
Expand Up @@ -6,7 +6,30 @@ concurrency:
cancel-in-progress: true

jobs:
build-mono:
build-mono2:
if: github.ref_name == github.event.repository.default_branch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Compile MCGalaxy using mono
shell: bash
id: compile
run: |
msbuild MCGalaxy.sln /p:Configuration=Release /p:TargetFrameworkVersion=v2.0 /p:DefineConstants="NET_20"
- uses: ./.github/actions/notify_failure
if: ${{ always() && steps.compile.outcome == 'failure' }}
with:
NOTIFY_MESSAGE: 'Failed to compile MCGalaxy .NET 2.0 build'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'

- uses: ./.github/actions/upload_build
if: ${{ always() && steps.compile.outcome == 'success' }}
with:
SOURCE_FILE: 'bin/Release'
DEST_NAME: 'MCGalaxy_net2.0'

build-mono4:
if: github.ref_name == github.event.repository.default_branch
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 2 additions & 1 deletion MCGalaxy/Modules/Relay/Discord/DiscordWebsocket.cs
Expand Up @@ -34,6 +34,7 @@ public sealed class DiscordSession
public int Intents;
}
public delegate string DiscordGetStatus();
public delegate void GatewayEventCallback(string eventName, JsonObject data);

/// <summary> Implements a basic websocket for communicating with Discord's gateway </summary>
/// <remarks> https://discord.com/developers/docs/topics/gateway </remarks>
Expand Down Expand Up @@ -65,7 +66,7 @@ public sealed class DiscordWebsocket : ClientWebSocket
/// <summary> Callback invoked when a channel created event has been received </summary>
public Action<JsonObject> OnChannelCreate;
/// <summary> Callback invoked when a gateway event has been received </summary>
public Action<string, JsonObject> OnGatewayEvent;
public GatewayEventCallback OnGatewayEvent;

readonly object sendLock = new object();
SchedulerTask heartbeat;
Expand Down
1 change: 0 additions & 1 deletion MCGalaxy/Player/Pronouns.cs
Expand Up @@ -19,7 +19,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using MCGalaxy.Tasks;

Expand Down

0 comments on commit 2c05bb0

Please sign in to comment.