Add action build for .NET framework 2.0

This commit is contained in:
UnknownShadow200 2024-04-27 12:42:29 +10:00
parent b50073d9fa
commit 2c05bb0e33
3 changed files with 26 additions and 3 deletions

View File

@ -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:

View File

@ -34,6 +34,7 @@ namespace MCGalaxy.Modules.Relay.Discord
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>
@ -65,7 +66,7 @@ namespace MCGalaxy.Modules.Relay.Discord
/// <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;

View File

@ -19,7 +19,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using MCGalaxy.Tasks;