This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
65 lines (56 loc) · 1.78 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
name: Build
on:
push:
paths:
- "**.cs"
- "**.csproj"
- "pronouns.json"
- "VRCMods.sln"
- "Directory.Build.props"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Fetch VRChat binaries
uses: Skippeh/steamfetch-action@v1
with:
app: 438100
depot: 438101
manifest: '1588687391111820421' # VRChat 1204
dir: ${{ github.workspace }}/VRChat
os: windows
osarch: 64
username: ${{ secrets.DEPOTDL_USERNAME }}
password: ${{ secrets.DEPOTDL_PASSWORD }}
# UnityPlayer.dll is needed on Windows runners
# VRChat_Data\globalgamemanagers for Linux & macOS runners
files: |
VRChat.exe
GameAssembly.dll
VRChat_Data\globalgamemanagers
VRChat_Data\il2cpp_data\Metadata\global-metadata.dat
- name: Generate libraries
uses: tetra-fox/ml-gen@main
with:
game: vrchat
game_path: ${{ github.workspace }}/VRChat
game_executable: VRChat
- name: Download VRChatUtilityKit
run: wget -q -P ${{ github.workspace }}/VRChat/Mods https://api.vrcmg.com/v0/mods/231/VRChatUtilityKit.dll
- name: Build
run: dotnet build -p:CI=True -p:Configuration=Release
- name: Get short commit SHA
uses: benjlevesque/[email protected]
id: short-sha
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: VRCMods.${{ steps.short-sha.outputs.sha }}.CI
path: bin/