Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 20 additions & 73 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,104 +16,51 @@ jobs:
# Setup

- name: Checkout latest
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

- name: Checkout private tools
uses: actions/checkout@v4
with:
repository: ${{ secrets.NR_INTEROP_REPO }}
token: ${{ secrets.NR_INTEROP_TOKEN }}
path: NR_INTEROP

- name: Setup dotnet
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.x'
dotnet-version: "6.x"
# Run build script
- name: Build UE
run: ./build.ps1

# Upload artifacts
- name: Upload BepInEx.IL2CPP
uses: actions/upload-artifact@v3
with:
name: CinematicUnityExplorer.BepInEx.IL2CPP.zip
path: ./Release/CinematicUnityExplorer.BepInEx.IL2CPP/

- name: Upload BepInEx.IL2CPP.CoreCLR
uses: actions/upload-artifact@v3
with:
name: CinematicUnityExplorer.BepInEx.IL2CPP.CoreCLR.zip
path: ./Release/CinematicUnityExplorer.BepInEx.IL2CPP.CoreCLR/

- name: Upload BepInEx.Unity.IL2CPP.CoreCLR
uses: actions/upload-artifact@v3
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@v3
with:
name: CinematicUnityExplorer.BepInEx5.Mono.zip
path: ./Release/CinematicUnityExplorer.BepInEx5.Mono/

- name: Upload BepInEx6.Mono
uses: actions/upload-artifact@v3
with:
name: CinematicUnityExplorer.BepInEx6.Mono.zip
path: ./Release/CinematicUnityExplorer.BepInEx6.Mono/

- name: Upload BepInEx6.Unity.Mono
uses: actions/upload-artifact@v3
with:
name: CinematicUnityExplorer.BepInEx6.Unity.Mono.zip
path: ./Release/CinematicUnityExplorer.BepInEx6.Unity.Mono/
path: ./Release/CinematicUnityExplorer.BepInEx.Unity.IL2CPP.CoreCLR/output

- name: Upload MelonLoader.IL2CPP
uses: actions/upload-artifact@v3
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@v3
with:
name: CinematicUnityExplorer.MelonLoader.IL2CPP.net6preview.zip
path: ./Release/CinematicUnityExplorer.MelonLoader.IL2CPP.net6preview/
path: ./Release/CinematicUnityExplorer.MelonLoader.IL2CPP/output

- name: Upload MelonLoader.IL2CPP.CoreCLR
uses: actions/upload-artifact@v3
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@v3
with:
name: CinematicUnityExplorer.MelonLoader.Mono.zip
path: ./Release/CinematicUnityExplorer.MelonLoader.Mono/

- name: Upload Standalone.IL2CPP
uses: actions/upload-artifact@v3
with:
name: CinematicUnityExplorer.Standalone.IL2CPP.zip
path: ./Release/CinematicUnityExplorer.Standalone.IL2CPP/

- name: Upload Standalone.Mono
uses: actions/upload-artifact@v3
with:
name: CinematicUnityExplorer.Standalone.Mono.zip
path: ./Release/CinematicUnityExplorer.Standalone.Mono/

- name: Upload Editor
uses: actions/upload-artifact@v3
with:
name: CinematicUnityExplorer.Editor.zip
path: ./UnityEditorPackage/

path: ./Release/CinematicUnityExplorer.MelonLoader.IL2CPP.CoreCLR/output

build_connector:
runs-on: windows-latest
if: "!contains(github.event.head_commit.message, '-noci')"

steps:
- name: Checkout latest
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true

Expand All @@ -127,13 +74,13 @@ jobs:
run: ./build_connector.ps1

- name: Upload Unity IGCS Connector
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: UnityIGCSConnector.dll
path: ./Release/UnityIGCSConnector.dll

- name: Upload Unity IGCS Connector 32bit
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: UnityIGCSConnector.32.dll
path: ./Release/UnityIGCSConnector.32.dll
55 changes: 55 additions & 0 deletions .github/workflows/dotnet_nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build CinematicUnityExplorer (Nightly)

# Controls when the action will run.
on:
push:
branches: [development]
# 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@v4
with:
submodules: true
- name: Checkout private tools
uses: actions/checkout@v4
with:
repository: ${{ secrets.NR_INTEROP_REPO }}
token: ${{ secrets.NR_INTEROP_TOKEN }}
path: NR_INTEROP
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: "6.x"

- name: Cache UniverseLib
id: cache-universe-lib-build
uses: actions/cache@v4
env:
cache-name: cache-universe-lib
with:
path: ./UniverseLib/Release
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('.git\modules\UniverseLib\HEAD') }}

- if: ${{ steps.cache-universe-lib-build.outputs.cache-hit != 'true' }}
name: Build UniverseLib
working-directory: ./UniverseLib
run: dotnet build src\UniverseLib.sln -c Release_IL2CPP_Interop_BIE

- name: Build UE
run: ./build_nightly.ps1

# Upload artifacts
- 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/output
Loading