98 lines
3.3 KiB
YAML
Raw Normal View History

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:
jobs:
build:
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:
2021-05-30 04:50:37 +10:00
# Checkout latest with submodules
2021-05-29 17:18:09 +10:00
- uses: actions/checkout@v2
2021-05-29 17:20:42 +10:00
with:
submodules: recursive
2021-05-30 04:50:37 +10:00
# Setup tools
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
2021-05-30 04:50:37 +10:00
- run: msbuild lib\Il2CppAssemblyUnhollower\UnhollowerBaseLib\UnhollowerBaseLib.csproj -t:Restore -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release
2021-05-29 17:46:59 +10:00
2021-05-29 17:18:09 +10:00
# Build mcs
2021-05-30 04:50:37 +10:00
- run: nuget restore lib\mcs-unity\mcs.sln
- 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
2021-05-30 04:50:37 +10:00
# Build UnityExplorer releases, and upload artifacts
2021-05-29 17:18:09 +10:00
2021-05-30 04:50:37 +10:00
- run: nuget restore src\UnityExplorer.sln
2021-05-29 17:18:09 +10:00
2021-05-30 04:50:37 +10:00
# BepInEx Il2Cpp
- run: msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_BIE_Cpp
2021-05-29 17:18:09 +10:00
- uses: actions/upload-artifact@v2
with:
name: UnityExplorer.BepInEx.Il2Cpp
path: ./Release/UnityExplorer.BepInEx.Il2Cpp/*
2021-05-30 04:50:37 +10:00
# BepInEx 5 Mono
- run: msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_BIE5_Mono
2021-05-29 17:18:09 +10:00
- uses: actions/upload-artifact@v2
with:
name: UnityExplorer.BepInEx5.Mono
path: ./Release/UnityExplorer.BepInEx5.Mono/*
2021-05-30 04:50:37 +10:00
# BepInEx 6 Mono
- run: msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_BIE6_Mono
2021-05-29 17:18:09 +10:00
- uses: actions/upload-artifact@v2
with:
name: UnityExplorer.BepInEx6.Mono
path: ./Release/UnityExplorer.BepInEx6.Mono/*
2021-05-30 04:50:37 +10:00
# MelonLoader Il2Cpp
- run: msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_ML_Cpp
2021-05-29 17:18:09 +10:00
- uses: actions/upload-artifact@v2
with:
name: UnityExplorer.MelonLoader.Il2Cpp
path: ./Release/UnityExplorer.MelonLoader.Il2Cpp/*
2021-05-30 04:50:37 +10:00
# MelonLoader Mono
- run: msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_ML_Mono
2021-05-29 17:18:09 +10:00
- uses: actions/upload-artifact@v2
with:
name: UnityExplorer.MelonLoader.Mono
path: ./Release/UnityExplorer.MelonLoader.Mono/*
2021-05-30 04:50:37 +10:00
# Standalone Il2Cpp
- run: msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_STANDALONE_Cpp
2021-05-29 17:18:09 +10:00
- uses: actions/upload-artifact@v2
with:
name: UnityExplorer.Standalone.Il2Cpp
path: ./Release/UnityExplorer.Standalone.Il2Cpp/*
2021-05-30 04:50:37 +10:00
# Standalone Mono
- run: msbuild src\UnityExplorer.csproj -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release_STANDALONE_Mono
2021-05-29 17:18:09 +10:00
- uses: actions/upload-artifact@v2
with:
name: UnityExplorer.Standalone.Mono
path: ./Release/UnityExplorer.Standalone.Mono/*