93 lines
2.6 KiB
YAML
Raw Permalink 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:
2022-04-12 01:20:13 +10:00
# Setup
- name: Checkout latest
uses: actions/checkout@v2
2021-05-29 19:13:30 +10:00
2022-04-12 01:20:13 +10:00
- name: Setup dotnet
uses: actions/setup-dotnet@v2
2021-05-29 19:13:30 +10:00
with:
2022-04-12 01:20:13 +10:00
dotnet-version: '6.0.x'
include-prerelease: true
2021-05-29 17:18:09 +10:00
2022-04-12 01:20:13 +10:00
# Run build script
- run: |
./build.ps1
2022-04-12 01:20:13 +10:00
# Upload artifacts
2021-05-29 17:18:09 +10:00
2022-04-12 01:20:13 +10:00
# BepInEx IL2CPP
2021-05-29 17:18:09 +10:00
- uses: actions/upload-artifact@v2
with:
2022-04-12 01:20:13 +10:00
name: UnityExplorer.BepInEx.IL2CPP.zip
2022-05-17 19:06:26 +10:00
path: ./Release/UnityExplorer.BepInEx.IL2CPP/
# BepInEx IL2CPP CoreCLR
- uses: actions/upload-artifact@v2
with:
name: UnityExplorer.BepInEx.IL2CPP.CoreCLR.zip
path: ./Release/UnityExplorer.BepInEx.IL2CPP.CoreCLR/
2021-05-30 04:50:37 +10:00
# BepInEx 5 Mono
2021-05-29 17:18:09 +10:00
- uses: actions/upload-artifact@v2
with:
2022-04-12 01:20:13 +10:00
name: UnityExplorer.BepInEx5.Mono.zip
2022-05-17 19:06:26 +10:00
path: ./Release/UnityExplorer.BepInEx5.Mono/
2021-05-29 17:18:09 +10:00
2021-05-30 04:50:37 +10:00
# BepInEx 6 Mono
2022-04-12 01:20:13 +10:00
- uses: actions/upload-artifact@v2
with:
name: UnityExplorer.BepInEx6.Mono.zip
2022-05-17 19:06:26 +10:00
path: ./Release/UnityExplorer.BepInEx6.Mono/
2021-05-30 04:50:37 +10:00
2022-04-12 01:20:13 +10:00
# Editor
2021-05-29 17:18:09 +10:00
- uses: actions/upload-artifact@v2
with:
2022-04-12 01:20:13 +10:00
name: UnityExplorer.Editor.zip
2022-05-17 19:06:26 +10:00
path: ./UnityEditorPackage/
2021-05-29 17:18:09 +10:00
2022-04-12 01:20:13 +10:00
# MelonLoader IL2CPP net6preview
- uses: actions/upload-artifact@v2
with:
name: UnityExplorer.MelonLoader.IL2CPP.net6preview.zip
2022-05-17 19:06:26 +10:00
path: ./Release/UnityExplorer.MelonLoader.IL2CPP.net6preview/
2021-05-30 04:50:37 +10:00
2022-04-12 01:20:13 +10:00
# MelonLoader IL2CPP net472
2021-05-29 17:18:09 +10:00
- uses: actions/upload-artifact@v2
with:
2022-04-12 01:20:13 +10:00
name: UnityExplorer.MelonLoader.IL2CPP.zip
2022-05-17 19:06:26 +10:00
path: ./Release/UnityExplorer.MelonLoader.IL2CPP/
2021-05-29 17:18:09 +10:00
2021-05-30 04:50:37 +10:00
# MelonLoader Mono
2021-05-29 17:18:09 +10:00
- uses: actions/upload-artifact@v2
with:
2022-04-12 01:20:13 +10:00
name: UnityExplorer.MelonLoader.Mono.zip
2022-05-17 19:06:26 +10:00
path: ./Release/UnityExplorer.MelonLoader.Mono/
2021-05-29 17:18:09 +10:00
2021-05-30 04:50:37 +10:00
# Standalone Il2Cpp
2021-05-29 17:18:09 +10:00
- uses: actions/upload-artifact@v2
with:
2022-04-12 01:20:13 +10:00
name: UnityExplorer.Standalone.IL2CPP.zip
2022-05-17 19:06:26 +10:00
path: ./Release/UnityExplorer.Standalone.IL2CPP/
2021-05-29 17:18:09 +10:00
2021-05-30 04:50:37 +10:00
# Standalone Mono
2021-05-29 17:18:09 +10:00
- uses: actions/upload-artifact@v2
with:
2022-04-12 01:20:13 +10:00
name: UnityExplorer.Standalone.Mono.zip
2022-05-17 19:06:26 +10:00
path: ./Release/UnityExplorer.Standalone.Mono/
2021-05-29 17:18:09 +10:00