This repository was archived by the owner on Jan 22, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (56 loc) · 2.1 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: AutoBuild .NET
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
env:
BepInExId: 691
BepInExName: BepInEx-Unity.IL2CPP-win-x86-6.0.0-be.691%2B3ba398f
NETVersion: 6.x
steps:
- uses: actions/cache@v2
with:
path: |
~/.nuget/packages
~/.cache/bepinex
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- uses: actions/checkout@v2
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.NETVersion }}
- name: install wget
run: sudo apt install wget
- name: download BepInEx
run: wget https://builds.bepinex.dev/projects/bepinex_be/${{ env.BepInExId }}/${{ env.BepInExName }}.zip
- name: unzip BepInEx
run: unzip ${{ env.BepInExName }}.zip -d ./Release/
- name: path
run: sudo chmod -R 777 ./Release
- name: download Reactor
run: wget https://github.com/NuclearPowered/Reactor/releases/download/2.2.0/Reactor.dll -P ./Release/BepInEx/plugins
- name: Build
run: dotnet build TheOtherRoles/TheOtherRoles.csproj --configuration Release --output ./Release/BepInEx/plugins
- name: Upload TheOtherUsDll
uses: actions/upload-artifact@v4.3.1
with:
name: TheOtherUs.dll
path: ./Release/BepInEx/plugins/TheOtherUs.dll
- name: Del Other Files
run: rm -rf ./Release/BepInEx/plugins/TheOtherUs.deps.json ./Release/BepInEx/plugins/TheOtherUs.pdb ./Release/changelog.txt ./Release/BepInEx/config/BepInEx.cfg
- name: make
run: mkdir ./Release/BepInEx/config
- name: Move cfg
run: mv BepInEx.cfg ./Release/BepInEx/config
- name: Upload TheOtherUs
uses: actions/upload-artifact@v4.3.1
with:
name: TheOtherUs
path: ./Release/