mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2025-07-19 01:57:56 +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:
28
.github/workflows/dotnet.yml
vendored
28
.github/workflows/dotnet.yml
vendored
@ -8,7 +8,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build_dotnet:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
if: "!contains(github.event.head_commit.message, '-noci')"
|
if: "!contains(github.event.head_commit.message, '-noci')"
|
||||||
|
|
||||||
@ -105,3 +105,29 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: CinematicUnityExplorer.Editor.zip
|
name: CinematicUnityExplorer.Editor.zip
|
||||||
path: ./UnityEditorPackage/
|
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
|
||||||
|
@ -2,9 +2,6 @@ cd UniverseLib
|
|||||||
.\build.ps1
|
.\build.ps1
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# ----------- Build UnityIGCSConnector ------------
|
|
||||||
msbuild.exe UnityIGCSConnector/UnityIGCSConnector.sln -p:Configuration=Release
|
|
||||||
|
|
||||||
# ----------- MelonLoader IL2CPP (net6) -----------
|
# ----------- MelonLoader IL2CPP (net6) -----------
|
||||||
dotnet build src/CinematicUnityExplorer.sln -c Release_ML_Cpp_net6preview
|
dotnet build src/CinematicUnityExplorer.sln -c Release_ML_Cpp_net6preview
|
||||||
$Path = "Release\CinematicUnityExplorer.MelonLoader.IL2CPP.net6preview"
|
$Path = "Release\CinematicUnityExplorer.MelonLoader.IL2CPP.net6preview"
|
||||||
|
3
build_connector.ps1
Normal file
3
build_connector.ps1
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# ----------- Build UnityIGCSConnector ------------
|
||||||
|
msbuild.exe UnityIGCSConnector/UnityIGCSConnector.sln -p:Configuration=Release
|
||||||
|
|
Reference in New Issue
Block a user