1
0
mirror of https://github.com/originalnicodr/CinematicUnityExplorer.git synced 2025-07-18 17:38:01 +08:00

actions: Update dotnet.yml (#73)

Add support for C/C++ in the pipeline and upload the newer igcs connector.

It was necessary to create two different build scripts because for some reason
when you install the msvc compiler in a github action everything Just Breaks.

Then we create two different jobs to make sure they're independent instances of
containers that don't mess with other's environments.
This commit is contained in:
Sebastián A
2024-05-05 19:27:18 -04:00
committed by GitHub
parent f557d3de88
commit 271261307d
3 changed files with 31 additions and 5 deletions

View File

@ -8,7 +8,7 @@ on:
workflow_dispatch:
jobs:
build:
build_dotnet:
runs-on: windows-latest
if: "!contains(github.event.head_commit.message, '-noci')"
@ -105,3 +105,29 @@ jobs:
with:
name: CinematicUnityExplorer.Editor.zip
path: ./UnityEditorPackage/
build_connector:
runs-on: windows-latest
if: "!contains(github.event.head_commit.message, '-noci')"
steps:
- name: Checkout latest
uses: actions/checkout@v3
with:
submodules: true
- name: Setup C/C++
uses: TheMrMilchmann/setup-msvc-dev@v3.0.0
with:
arch: x64
# Run build script
- name: Build Unity IGCS Connector
run: ./build_connector.ps1
- name: Upload Unity IGCS Connector
uses: actions/upload-artifact@v3
with:
name: UnityIGCSConnector.dll
path: ./Release/UnityIGCSConnector.dll

View File

@ -2,9 +2,6 @@ cd UniverseLib
.\build.ps1
cd ..
# ----------- Build UnityIGCSConnector ------------
msbuild.exe UnityIGCSConnector/UnityIGCSConnector.sln -p:Configuration=Release
# ----------- MelonLoader IL2CPP (net6) -----------
dotnet build src/CinematicUnityExplorer.sln -c Release_ML_Cpp_net6preview
$Path = "Release\CinematicUnityExplorer.MelonLoader.IL2CPP.net6preview"

3
build_connector.ps1 Normal file
View File

@ -0,0 +1,3 @@
# ----------- Build UnityIGCSConnector ------------
msbuild.exe UnityIGCSConnector/UnityIGCSConnector.sln -p:Configuration=Release