From d9f6a66f23d210776db046e9fd9460353d389acc Mon Sep 17 00:00:00 2001 From: Karorogunso Date: Fri, 2 Jun 2023 01:54:58 +0700 Subject: [PATCH 1/9] Create Github Action. Create Github Action. --- .github/workflows/main.yml | 49 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..755283ea --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,49 @@ +name: AutoEventExiled Build +on: + push: + branches: + - main + - dev + - MERfix + pull_request: + branches: + - main + - dev + - MERfix + workflow_dispatch: +env: + REFERENCES_URL: https://katsuragigroup.net/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 }}/Dev.zip + Expand-Archive -Path Dev.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-Exiled\AutoEvent.csproj -t:rebuild -property:Configuration=Release -property:ReferencePath="${{ env.REFERENCES_PATH }}" + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: Scripted Events + path: "AutoEvent-Exiled/bin/Release/AutoEvent.dll" From 641e6b061a5eed8c7ea256529a9096cf9d9f4fa9 Mon Sep 17 00:00:00 2001 From: Karorogunso Date: Fri, 2 Jun 2023 02:00:26 +0700 Subject: [PATCH 2/9] oops --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 755283ea..b15cf094 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,8 +30,8 @@ jobs: - name: Get Build References shell: pwsh run: | - Invoke-WebRequest -Uri ${{ env.REFERENCES_URL }} -OutFile ${{ github.workspace }}/Dev.zip - Expand-Archive -Path Dev.zip -DestinationPath ${{ env.REFERENCES_PATH }} + 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 From e227eafe52e4e0134c5827c2cb6c75748185d9ad Mon Sep 17 00:00:00 2001 From: Karorogunso Date: Fri, 2 Jun 2023 02:32:53 +0700 Subject: [PATCH 3/9] hmm --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b15cf094..f50bab4f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,10 +40,10 @@ jobs: - name: Build run: | - msbuild AutoEvent-Exiled\AutoEvent.csproj -t:rebuild -property:Configuration=Release -property:ReferencePath="${{ env.REFERENCES_PATH }}" + msbuild AutoEvent.csproj -t:rebuild -property:Configuration=Release -property:ReferencePath="${{ env.REFERENCES_PATH }}" - name: Upload artifacts uses: actions/upload-artifact@v3 with: - name: Scripted Events + name: AutoEvent Build path: "AutoEvent-Exiled/bin/Release/AutoEvent.dll" From 32f48d8813807c26737adb5985d27f0e0db095dd Mon Sep 17 00:00:00 2001 From: Karorogunso Date: Fri, 2 Jun 2023 02:40:03 +0700 Subject: [PATCH 4/9] Update AutoEvent.csproj --- AutoEvent.csproj | 72 +++++++++++------------------------------------- 1 file changed, 16 insertions(+), 56 deletions(-) diff --git a/AutoEvent.csproj b/AutoEvent.csproj index 553bea0f..c40e78e7 100644 --- a/AutoEvent.csproj +++ b/AutoEvent.csproj @@ -1,4 +1,4 @@ - + @@ -33,73 +33,36 @@ - ..\..\..\Рабочий стол\файлы\0Harmony.dll + D:\d\0Harmony.dll - - False - ..\..\..\Рабочий стол\файлы\Assembly-CSharp-firstpass.dll + + D:\d\13\Assembly-CSharp.dll - + False - ..\..\..\Рабочий стол\файлы\Assembly-CSharp-Publicized.dll - - - packages\EXILED.7.0.0-rc.3-1\lib\net48\CommandSystem.Core.dll - - - packages\EXILED.7.0.0-rc.3-1\lib\net48\Exiled.API.dll - - - packages\EXILED.7.0.0-rc.3-1\lib\net48\Exiled.CreditTags.dll - - - packages\EXILED.7.0.0-rc.3-1\lib\net48\Exiled.CustomItems.dll - - - packages\EXILED.7.0.0-rc.3-1\lib\net48\Exiled.CustomRoles.dll - - - packages\EXILED.7.0.0-rc.3-1\lib\net48\Exiled.Events.dll - - - packages\EXILED.7.0.0-rc.3-1\lib\net48\Exiled.Loader.dll - - - packages\EXILED.7.0.0-rc.3-1\lib\net48\Exiled.Permissions.dll - - - packages\EXILED.7.0.0-rc.3-1\lib\net48\Exiled.Updater.dll + D:\d\13\Assembly-CSharp-firstpass.dll False - ..\..\..\Рабочий стол\файлы\MapEditorReborn.dll + D:\d\13\MapEditorReborn.dll False - ..\..\..\Рабочий стол\файлы\Mirror.dll - - - packages\EXILED.7.0.0-rc.3-1\lib\net48\NorthwoodLib.dll - - - packages\EXILED.7.0.0-rc.3-1\lib\net48\PluginAPI.dll + D:\d\13\Mirror.dll False - C:\Users\Roman\AppData\Roaming\EXILED\Plugins\dependencies\SCPSLAudioApi.dll + D:\d\13\SCPSLAudioApi.dll - ..\..\Рабочий стол\файлы\UnityEngine.dll + D:\d\13\UnityEngine.dll - ..\..\Рабочий стол\файлы\UnityEngine.CoreModule.dll + D:\d\13\UnityEngine.CoreModule.dll - ..\..\Рабочий стол\файлы\UnityEngine.PhysicsModule.dll - - - packages\EXILED.7.0.0-rc.3-1\lib\net48\YamlDotNet.dll + D:\d\13\UnityEngine.PhysicsModule.dll @@ -119,8 +82,6 @@ - - @@ -130,9 +91,6 @@ - - - @@ -142,7 +100,9 @@ - + + 7.0.0-rc.3-1 + - \ No newline at end of file + From 4575308000bc331cb54f3e1a0351474da72dd986 Mon Sep 17 00:00:00 2001 From: Karorogunso Date: Fri, 2 Jun 2023 02:51:16 +0700 Subject: [PATCH 5/9] Update AutoEvent.csproj --- AutoEvent.csproj | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/AutoEvent.csproj b/AutoEvent.csproj index c40e78e7..04d9827b 100644 --- a/AutoEvent.csproj +++ b/AutoEvent.csproj @@ -33,36 +33,36 @@ - D:\d\0Harmony.dll + $(EXILED_REFERENCES)\0Harmony.dll - D:\d\13\Assembly-CSharp.dll + $(EXILED_REFERENCES)\Assembly-CSharp.dll False - D:\d\13\Assembly-CSharp-firstpass.dll + $(EXILED_REFERENCES)\Assembly-CSharp-firstpass.dll False - D:\d\13\MapEditorReborn.dll + $(EXILED_REFERENCES)\MapEditorReborn.dll False - D:\d\13\Mirror.dll + $(EXILED_REFERENCES)\Mirror.dll False - D:\d\13\SCPSLAudioApi.dll + $(EXILED_REFERENCES)\SCPSLAudioApi.dll - D:\d\13\UnityEngine.dll + $(EXILED_REFERENCES)\UnityEngine.dll - D:\d\13\UnityEngine.CoreModule.dll + $(EXILED_REFERENCES)\UnityEngine.CoreModule.dll - D:\d\13\UnityEngine.PhysicsModule.dll + $(EXILED_REFERENCES)\UnityEngine.PhysicsModule.dll From c2cd4f8cb29ebca21eeeaababb9a9cbbad292003 Mon Sep 17 00:00:00 2001 From: Karorogunso Date: Fri, 2 Jun 2023 03:02:24 +0700 Subject: [PATCH 6/9] Update the branch to triggle to Action Update the branch to triggle to Action --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f50bab4f..c7f8078e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,12 +4,12 @@ on: branches: - main - dev - - MERfix + - Mapfix pull_request: branches: - main - dev - - MERfix + - Mapfix workflow_dispatch: env: REFERENCES_URL: https://katsuragigroup.net/Libs.zip From 311eef1c3fb3b9e0eb87492ef1a88b9c5228e754 Mon Sep 17 00:00:00 2001 From: Karorogunso Date: Fri, 2 Jun 2023 03:19:02 +0700 Subject: [PATCH 7/9] Hope --- .github/workflows/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c7f8078e..6bb34339 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,4 +46,11 @@ jobs: uses: actions/upload-artifact@v3 with: name: AutoEvent Build - path: "AutoEvent-Exiled/bin/Release/AutoEvent.dll" + path: "./bin/Release/AutoEvent.dll" + + - name: Upload artifactsLatest + uses: actions/upload-artifact@v3.1.2 + with: + name: AutoEvent Build2 + #I doing the stupid sh-t okay? + path: "D:/a/AutoEvent-Exiled/AutoEvent-Exiled/bin/Release/AutoEvent.dll" From e6de1576c49de0d749839769f54057a3fbacc64b Mon Sep 17 00:00:00 2001 From: Karorogunso Date: Fri, 2 Jun 2023 03:38:26 +0700 Subject: [PATCH 8/9] FFS I start to wonder why the fuck is It work sometime, broken sometime. --- .github/workflows/main.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6bb34339..5806b727 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,6 +12,7 @@ on: - Mapfix workflow_dispatch: env: + #I start to wonder why the fuck is It work sometime, broken sometime. Should I change the host for file REFERENCES_URL: https://katsuragigroup.net/Libs.zip REFERENCES_PATH: ${{ github.workspace }}/References jobs: @@ -42,15 +43,10 @@ jobs: 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 + uses: actions/upload-artifact@v3.1.2 with: name: AutoEvent Build path: "./bin/Release/AutoEvent.dll" - - - name: Upload artifactsLatest - uses: actions/upload-artifact@v3.1.2 - with: - name: AutoEvent Build2 - #I doing the stupid sh-t okay? - path: "D:/a/AutoEvent-Exiled/AutoEvent-Exiled/bin/Release/AutoEvent.dll" + From cb0a2448b1421bf774bee5c58180a8161dfdc118 Mon Sep 17 00:00:00 2001 From: Karorogunso Date: Fri, 2 Jun 2023 10:57:18 +0700 Subject: [PATCH 9/9] Change host of Libs File --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5806b727..42d9df55 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,8 +12,8 @@ on: - Mapfix workflow_dispatch: env: - #I start to wonder why the fuck is It work sometime, broken sometime. Should I change the host for file - REFERENCES_URL: https://katsuragigroup.net/Libs.zip + #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: @@ -47,6 +47,6 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v3.1.2 with: - name: AutoEvent Build + name: AutoEvent-Exiled Development Build path: "./bin/Release/AutoEvent.dll"