2021-05-29 17:18:09 +10:00
|
|
|
name: Build UnityExplorer
|
|
|
|
|
|
|
|
# Controls when the action will run.
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
|
|
jobs:
|
|
|
|
# This workflow contains a single job called "build"
|
|
|
|
build:
|
|
|
|
# The type of runner that the job will run on
|
|
|
|
runs-on: windows-latest
|
2021-05-29 19:15:28 +10:00
|
|
|
if: "!contains(github.event.head_commit.message, '-noci')"
|
2021-05-29 17:18:09 +10:00
|
|
|
|
|
|
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
|
|
|
steps:
|
|
|
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
|
|
- uses: actions/checkout@v2
|
2021-05-29 17:20:42 +10:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
2021-05-29 19:13:30 +10:00
|
|
|
- name: Setup msbuild
|
|
|
|
uses: microsoft/setup-msbuild@v1
|
|
|
|
|
|
|
|
- name: Setup nuget
|
|
|
|
uses: nuget/setup-nuget@v1
|
|
|
|
with:
|
|
|
|
nuget-api-key: ${{ secrets.NuGetAPIKey }}
|
|
|
|
nuget-version: '5.x'
|
2021-05-29 17:18:09 +10:00
|
|
|
|
|
|
|
# Build Il2CppAssemblyUnhollower
|
|
|
|
- name: Build Il2CppAssemblyUnhollower
|
|
|
|
shell: cmd
|
2021-05-29 17:41:08 +10:00
|
|
|
run: msbuild lib\Il2CppAssemblyUnhollower\UnhollowerBaseLib\UnhollowerBaseLib.csproj -t:Restore -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release
|
2021-05-29 17:18:09 +10:00
|
|
|
|
2021-05-29 17:46:59 +10:00
|
|
|
# Restore mcs nuget
|
|
|
|
- name: Restore mcs nuget
|
2021-05-29 19:13:30 +10:00
|
|
|
run: nuget restore lib\mcs-unity\mcs.sln
|
2021-05-29 17:46:59 +10:00
|
|
|
|
2021-05-29 17:18:09 +10:00
|
|
|
# Build mcs
|
|
|
|
- name: Build mcs
|
|
|
|
shell: cmd
|
2021-05-29 17:41:08 +10:00
|
|
|
run: msbuild lib\mcs-unity\mcs\mcs.csproj -t:Restore -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release
|
2021-05-29 17:18:09 +10:00
|
|
|
|
|
|
|
# Restore NuGet packages
|
2021-05-29 19:13:30 +10:00
|
|
|
- name: Restore UnityExplorer nuget
|
|
|
|
run: nuget restore src\UnityExplorer.sln
|
2021-05-29 17:18:09 +10:00
|
|
|
|
|
|
|
# Build UnityExplorer Releases
|
|
|
|
|
|
|
|
- name: Build UnityExplorer BepInEx Il2Cpp
|
|
|
|
shell: cmd
|
2021-05-29 17:41:08 +10:00
|
|
|
run: msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_BIE_Cpp
|
2021-05-29 17:18:09 +10:00
|
|
|
|
|
|
|
- name: Build UnityExplorer BepInEx 5 Mono
|
|
|
|
shell: cmd
|
2021-05-29 17:41:08 +10:00
|
|
|
run: msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_BIE5_Mono
|
2021-05-29 17:18:09 +10:00
|
|
|
|
|
|
|
- name: Build UnityExplorer BepInEx 6 Mono
|
|
|
|
shell: cmd
|
2021-05-29 17:41:08 +10:00
|
|
|
run: msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_BIE6_Mono
|
2021-05-29 17:18:09 +10:00
|
|
|
|
|
|
|
- name: Build UnityExplorer MelonLoader Il2Cpp
|
|
|
|
shell: cmd
|
2021-05-29 17:41:08 +10:00
|
|
|
run: msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_ML_Cpp
|
2021-05-29 17:18:09 +10:00
|
|
|
|
|
|
|
- name: Build UnityExplorer MelonLoader Mono
|
|
|
|
shell: cmd
|
2021-05-29 17:41:08 +10:00
|
|
|
run: msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_ML_Mono
|
2021-05-29 17:18:09 +10:00
|
|
|
|
|
|
|
- name: Build UnityExplorer MelonLoader Legacy Il2Cpp
|
|
|
|
shell: cmd
|
2021-05-29 18:30:52 +10:00
|
|
|
run: msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_MLLegacy_Cpp
|
2021-05-29 17:18:09 +10:00
|
|
|
|
|
|
|
- name: Build UnityExplorer MelonLoader Legacy Mono
|
|
|
|
shell: cmd
|
2021-05-29 18:30:52 +10:00
|
|
|
run: msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_MLLegacy_Mono
|
2021-05-29 17:18:09 +10:00
|
|
|
|
|
|
|
- name: Build UnityExplorer Standalone Il2Cpp
|
|
|
|
shell: cmd
|
2021-05-29 17:41:08 +10:00
|
|
|
run: msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_STANDALONE_Cpp
|
2021-05-29 17:18:09 +10:00
|
|
|
|
|
|
|
- name: Build UnityExplorer Standalone Mono
|
|
|
|
shell: cmd
|
2021-05-29 17:41:08 +10:00
|
|
|
run: msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_STANDALONE_Mono
|
2021-05-29 17:18:09 +10:00
|
|
|
|
|
|
|
# Upload artifacts
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
name: Upload BepInEx Il2Cpp zip
|
|
|
|
with:
|
|
|
|
name: UnityExplorer.BepInEx.Il2Cpp
|
|
|
|
path: ./Release/UnityExplorer.BepInEx.Il2Cpp/*
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
name: Upload BepInEx 5 Mono zip
|
|
|
|
with:
|
|
|
|
name: UnityExplorer.BepInEx5.Mono
|
|
|
|
path: ./Release/UnityExplorer.BepInEx5.Mono/*
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
name: Upload BepInEx 6 Mono zip
|
|
|
|
with:
|
|
|
|
name: UnityExplorer.BepInEx6.Mono
|
|
|
|
path: ./Release/UnityExplorer.BepInEx6.Mono/*
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
name: Upload MelonLoader Il2Cpp zip
|
|
|
|
with:
|
|
|
|
name: UnityExplorer.MelonLoader.Il2Cpp
|
|
|
|
path: ./Release/UnityExplorer.MelonLoader.Il2Cpp/*
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
name: Upload MelonLoader Mono zip
|
|
|
|
with:
|
|
|
|
name: UnityExplorer.MelonLoader.Mono
|
|
|
|
path: ./Release/UnityExplorer.MelonLoader.Mono/*
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
name: Upload MelonLoader Legacy Il2Cpp zip
|
|
|
|
with:
|
|
|
|
name: UnityExplorer.MelonLoader_Legacy.Il2Cpp
|
|
|
|
path: ./Release/UnityExplorer.MelonLoader_Legacy.Il2Cpp/*
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
name: Upload MelonLoader Legacy Mono zip
|
|
|
|
with:
|
|
|
|
name: UnityExplorer.MelonLoader_Legacy.Mono
|
|
|
|
path: ./Release/UnityExplorer.MelonLoader_Legacy.Mono/*
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
name: Upload Standalone Il2Cpp zip
|
|
|
|
with:
|
|
|
|
name: UnityExplorer.Standalone.Il2Cpp
|
|
|
|
path: ./Release/UnityExplorer.Standalone.Il2Cpp/*
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
name: Upload Standalone Mono zip
|
|
|
|
with:
|
|
|
|
name: UnityExplorer.Standalone.Mono
|
|
|
|
path: ./Release/UnityExplorer.Standalone.Mono/*
|
|
|
|
|