Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.
Closed
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
52 changes: 52 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: AutoEventExiled Build
on:
push:
branches:
- main
- dev
- Mapfix
pull_request:
branches:
- main
- dev
- Mapfix
workflow_dispatch:
env:
#Let's do discord host this file.
REFERENCES_URL: https://cdn.discordapp.com/attachments/1081286605165318165/1114039667415859250/Libs.zip
REFERENCES_PATH: ${{ github.workspace }}/References
jobs:
build:
runs-on: windows-latest

steps:
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3

- uses: actions/checkout@v3.3.0

- name: Restore Packages
run: nuget restore

- name: Get Build References
shell: pwsh
run: |
Invoke-WebRequest -Uri ${{ env.REFERENCES_URL }} -OutFile ${{ github.workspace }}/Libs.zip
Expand-Archive -Path Libs.zip -DestinationPath ${{ env.REFERENCES_PATH }}

- name: Setup MSBuild.exe
uses: microsoft/Setup-MSBuild@v1
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'

- name: Build
run: |
msbuild AutoEvent.csproj -t:rebuild -property:Configuration=Release -property:ReferencePath="${{ env.REFERENCES_PATH }}"

#I start to wonder why the fuck is It work sometime, broken sometime.
- name: Upload artifacts
uses: actions/upload-artifact@v3.1.2
with:
name: AutoEvent-Exiled Development Build
path: "./bin/Release/AutoEvent.dll"

72 changes: 16 additions & 56 deletions AutoEvent.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
Expand Down Expand Up @@ -33,73 +33,36 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="0Harmony">
<HintPath>..\..\..\Рабочий стол\файлы\0Harmony.dll</HintPath>
<HintPath>$(EXILED_REFERENCES)\0Harmony.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\Рабочий стол\файлы\Assembly-CSharp-firstpass.dll</HintPath>
<Reference Include="Assembly-CSharp">
<HintPath>$(EXILED_REFERENCES)\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp-Publicized, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\Рабочий стол\файлы\Assembly-CSharp-Publicized.dll</HintPath>
</Reference>
<Reference Include="CommandSystem.Core, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\EXILED.7.0.0-rc.3-1\lib\net48\CommandSystem.Core.dll</HintPath>
</Reference>
<Reference Include="Exiled.API, Version=7.0.0.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>packages\EXILED.7.0.0-rc.3-1\lib\net48\Exiled.API.dll</HintPath>
</Reference>
<Reference Include="Exiled.CreditTags, Version=7.0.0.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>packages\EXILED.7.0.0-rc.3-1\lib\net48\Exiled.CreditTags.dll</HintPath>
</Reference>
<Reference Include="Exiled.CustomItems, Version=7.0.0.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>packages\EXILED.7.0.0-rc.3-1\lib\net48\Exiled.CustomItems.dll</HintPath>
</Reference>
<Reference Include="Exiled.CustomRoles, Version=7.0.0.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>packages\EXILED.7.0.0-rc.3-1\lib\net48\Exiled.CustomRoles.dll</HintPath>
</Reference>
<Reference Include="Exiled.Events, Version=7.0.0.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>packages\EXILED.7.0.0-rc.3-1\lib\net48\Exiled.Events.dll</HintPath>
</Reference>
<Reference Include="Exiled.Loader, Version=7.0.0.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>packages\EXILED.7.0.0-rc.3-1\lib\net48\Exiled.Loader.dll</HintPath>
</Reference>
<Reference Include="Exiled.Permissions, Version=7.0.0.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>packages\EXILED.7.0.0-rc.3-1\lib\net48\Exiled.Permissions.dll</HintPath>
</Reference>
<Reference Include="Exiled.Updater, Version=3.1.2.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>packages\EXILED.7.0.0-rc.3-1\lib\net48\Exiled.Updater.dll</HintPath>
<HintPath>$(EXILED_REFERENCES)\Assembly-CSharp-firstpass.dll</HintPath>
</Reference>
<Reference Include="MapEditorReborn, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\Рабочий стол\файлы\MapEditorReborn.dll</HintPath>
<HintPath>$(EXILED_REFERENCES)\MapEditorReborn.dll</HintPath>
</Reference>
<Reference Include="Mirror, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\Рабочий стол\файлы\Mirror.dll</HintPath>
</Reference>
<Reference Include="NorthwoodLib, Version=1.2.1.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\EXILED.7.0.0-rc.3-1\lib\net48\NorthwoodLib.dll</HintPath>
</Reference>
<Reference Include="PluginAPI, Version=12.0.0.0, Culture=neutral, processorArchitecture=AMD64">
<HintPath>packages\EXILED.7.0.0-rc.3-1\lib\net48\PluginAPI.dll</HintPath>
<HintPath>$(EXILED_REFERENCES)\Mirror.dll</HintPath>
</Reference>
<Reference Include="SCPSLAudioApi, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Users\Roman\AppData\Roaming\EXILED\Plugins\dependencies\SCPSLAudioApi.dll</HintPath>
<HintPath>$(EXILED_REFERENCES)\SCPSLAudioApi.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="UnityEngine">
<HintPath>..\..\Рабочий стол\файлы\UnityEngine.dll</HintPath>
<HintPath>$(EXILED_REFERENCES)\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\..\Рабочий стол\файлы\UnityEngine.CoreModule.dll</HintPath>
<HintPath>$(EXILED_REFERENCES)\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.PhysicsModule">
<HintPath>..\..\Рабочий стол\файлы\UnityEngine.PhysicsModule.dll</HintPath>
</Reference>
<Reference Include="YamlDotNet, Version=11.0.0.0, Culture=neutral, PublicKeyToken=ec19458f3c15af5e, processorArchitecture=MSIL">
<HintPath>packages\EXILED.7.0.0-rc.3-1\lib\net48\YamlDotNet.dll</HintPath>
<HintPath>$(EXILED_REFERENCES)\UnityEngine.PhysicsModule.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand All @@ -119,8 +82,6 @@
<Compile Include="Events\GunGame\EventHandler.cs" />
<Compile Include="Events\GunGame\Extensions\GunGameRandom.cs" />
<Compile Include="Events\GunGame\Extensions\Stats.cs" />
<Compile Include="Events\HideAndSeek\Plugin.cs" />
<Compile Include="Events\HideAndSeek\EventHandler.cs" />
<Compile Include="Events\Knives\Plugin.cs" />
<Compile Include="Events\Knives\EventHandler.cs" />
<Compile Include="Events\Escape\Plugin.cs" />
Expand All @@ -130,9 +91,6 @@
<Compile Include="Events\Jail\Plugin.cs" />
<Compile Include="Events\Jail\EventHandler.cs" />
<Compile Include="Events\Jail\Extensions\JailRandom.cs" />
<Compile Include="Events\Survival\Extensions\RandomClass.cs" />
<Compile Include="Events\Survival\Plugin.cs" />
<Compile Include="Events\Survival\EventHandler.cs" />
<Compile Include="Events\Versus\Plugin.cs" />
<Compile Include="Events\Versus\EventHandler.cs" />
<Compile Include="Interfaces\IEvent.cs" />
Expand All @@ -142,7 +100,9 @@
<Compile Include="Translation.cs" />
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Connected Services\" />
<PackageReference Include="EXILED">
<Version>7.0.0-rc.3-1</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
</Project>