mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2025-07-18 09:27:57 +08:00
140 lines
4.3 KiB
YAML
140 lines
4.3 KiB
YAML
name: Build CinematicUnityExplorer
|
|
|
|
# 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_dotnet:
|
|
runs-on: windows-latest
|
|
if: "!contains(github.event.head_commit.message, '-noci')"
|
|
|
|
steps:
|
|
# Setup
|
|
|
|
- name: Checkout latest
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
- name: Setup dotnet
|
|
uses: actions/setup-dotnet@v3
|
|
with:
|
|
dotnet-version: '6.x'
|
|
# Run build script
|
|
- name: Build UE
|
|
run: ./build.ps1
|
|
|
|
# Upload artifacts
|
|
- name: Upload BepInEx.IL2CPP
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: CinematicUnityExplorer.BepInEx.IL2CPP.zip
|
|
path: ./Release/CinematicUnityExplorer.BepInEx.IL2CPP/
|
|
|
|
- name: Upload BepInEx.IL2CPP.CoreCLR
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: CinematicUnityExplorer.BepInEx.IL2CPP.CoreCLR.zip
|
|
path: ./Release/CinematicUnityExplorer.BepInEx.IL2CPP.CoreCLR/
|
|
|
|
- name: Upload BepInEx.Unity.IL2CPP.CoreCLR
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: CinematicUnityExplorer.BepInEx.Unity.IL2CPP.CoreCLR.zip
|
|
path: ./Release/CinematicUnityExplorer.BepInEx.Unity.IL2CPP.CoreCLR/
|
|
|
|
- name: Upload BepInEx5.Mono
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: CinematicUnityExplorer.BepInEx5.Mono.zip
|
|
path: ./Release/CinematicUnityExplorer.BepInEx5.Mono/
|
|
|
|
- name: Upload BepInEx6.Mono
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: CinematicUnityExplorer.BepInEx6.Mono.zip
|
|
path: ./Release/CinematicUnityExplorer.BepInEx6.Mono/
|
|
|
|
- name: Upload BepInEx6.Unity.Mono
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: CinematicUnityExplorer.BepInEx6.Unity.Mono.zip
|
|
path: ./Release/CinematicUnityExplorer.BepInEx6.Unity.Mono/
|
|
|
|
- name: Upload MelonLoader.IL2CPP
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: CinematicUnityExplorer.MelonLoader.IL2CPP.zip
|
|
path: ./Release/CinematicUnityExplorer.MelonLoader.IL2CPP/
|
|
|
|
- name: Upload MelonLoader.IL2CPP.net6preview
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: CinematicUnityExplorer.MelonLoader.IL2CPP.net6preview.zip
|
|
path: ./Release/CinematicUnityExplorer.MelonLoader.IL2CPP.net6preview/
|
|
|
|
- name: Upload MelonLoader.IL2CPP.CoreCLR
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: CinematicUnityExplorer.MelonLoader.IL2CPP.CoreCLR.zip
|
|
path: ./Release/CinematicUnityExplorer.MelonLoader.IL2CPP.CoreCLR/
|
|
|
|
- name: Upload MelonLoader.Mono
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: CinematicUnityExplorer.MelonLoader.Mono.zip
|
|
path: ./Release/CinematicUnityExplorer.MelonLoader.Mono/
|
|
|
|
- name: Upload Standalone.IL2CPP
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: CinematicUnityExplorer.Standalone.IL2CPP.zip
|
|
path: ./Release/CinematicUnityExplorer.Standalone.IL2CPP/
|
|
|
|
- name: Upload Standalone.Mono
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: CinematicUnityExplorer.Standalone.Mono.zip
|
|
path: ./Release/CinematicUnityExplorer.Standalone.Mono/
|
|
|
|
- name: Upload Editor
|
|
uses: actions/upload-artifact@v4
|
|
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@v4
|
|
with:
|
|
name: UnityIGCSConnector.dll
|
|
path: ./Release/UnityIGCSConnector.dll
|
|
|
|
- name: Upload Unity IGCS Connector 32bit
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: UnityIGCSConnector.32.dll
|
|
path: ./Release/UnityIGCSConnector.32.dll
|