mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Add action build for .NET framework 2.0
This commit is contained in:
parent
b50073d9fa
commit
2c05bb0e33
25
.github/workflows/build.yml
vendored
25
.github/workflows/build.yml
vendored
@ -6,7 +6,30 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
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
|
if: github.ref_name == github.event.repository.default_branch
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -34,6 +34,7 @@ namespace MCGalaxy.Modules.Relay.Discord
|
|||||||
public int Intents;
|
public int Intents;
|
||||||
}
|
}
|
||||||
public delegate string DiscordGetStatus();
|
public delegate string DiscordGetStatus();
|
||||||
|
public delegate void GatewayEventCallback(string eventName, JsonObject data);
|
||||||
|
|
||||||
/// <summary> Implements a basic websocket for communicating with Discord's gateway </summary>
|
/// <summary> Implements a basic websocket for communicating with Discord's gateway </summary>
|
||||||
/// <remarks> https://discord.com/developers/docs/topics/gateway </remarks>
|
/// <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>
|
/// <summary> Callback invoked when a channel created event has been received </summary>
|
||||||
public Action<JsonObject> OnChannelCreate;
|
public Action<JsonObject> OnChannelCreate;
|
||||||
/// <summary> Callback invoked when a gateway event has been received </summary>
|
/// <summary> Callback invoked when a gateway event has been received </summary>
|
||||||
public Action<string, JsonObject> OnGatewayEvent;
|
public GatewayEventCallback OnGatewayEvent;
|
||||||
|
|
||||||
readonly object sendLock = new object();
|
readonly object sendLock = new object();
|
||||||
SchedulerTask heartbeat;
|
SchedulerTask heartbeat;
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using MCGalaxy.Tasks;
|
using MCGalaxy.Tasks;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user