From e99f15a88e0e671ae43f8881c76d4ab4cd25d00d Mon Sep 17 00:00:00 2001 From: RedBigz Date: Wed, 6 Nov 2024 18:51:49 +1000 Subject: [PATCH] Trial GitHub Actions --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a814c43 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Build Solution + +on: [ push ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup .NET SDK + uses: actions/setup-dotnet@v4 + with: + dotnet-version: "6.0.422" + - name: Download Template + run: | + mkdir Template + curl -o qic.tar.xz https://redbigz.com/lfs/TABG.VR.QuickInstallerContainer.tar.xz + tar -xf qic.tar.xz -C Template + - name: Download Assemblies + run: | + mkdir Managed + curl -o managed.tar.xz https://redbigz.com/lfs/TABG.VR.ManagedStripped.tar.xz + tar -xf managed.tar.xz -C Managed + + mkdir GameReferences + cp Template/TABGVR/core/* GameReferences # works well enough + - name: Build Solution + run: dotnet build -c release -p:TABGManaged=Managed + - name: Copy Binary to Template + run: cp ./TABGVR/bin/Release/netstandard2.1/TABGVR.dll Template/BepInEx/plugins + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: TABGVR + path: "./Template/*" \ No newline at end of file