From 92b809e95b5459f3c67be2648e97bd3dc64624e5 Mon Sep 17 00:00:00 2001 From: ManicSteiner Date: Fri, 23 Feb 2024 11:38:01 +0800 Subject: [PATCH] add ci build script --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 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 00000000..c8792a27 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: .NET Framework Build +on: [push, pull_request] +jobs: + build: + runs-on: windows-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + show-progress: false + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v2 + # Restore NuGet packages + - name: Restore + run: nuget restore + # Build the solution + - name: Build + run: msbuild /p:Configuration=Release /p:Platform="Any CPU" /p:TargetFrameworkVersion=v4.6.2 GARbro.sln + # Publish the artifacts + - name: Publish Artifact + if: success() + uses: actions/upload-artifact@v4 + with: + name: GARbro-Mod-ci-build + path: bin/Release \ No newline at end of file