From 1117352aeeb64e6f15195e8072ddec362691c71e Mon Sep 17 00:00:00 2001 From: MouriNaruto Date: Mon, 1 Jul 2024 23:32:19 +0800 Subject: [PATCH] Add GitHub Action support. --- .github/workflows/BuildBinaries.yml | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/BuildBinaries.yml diff --git a/.github/workflows/BuildBinaries.yml b/.github/workflows/BuildBinaries.yml new file mode 100644 index 0000000..42d396b --- /dev/null +++ b/.github/workflows/BuildBinaries.yml @@ -0,0 +1,32 @@ +name: Build Binaries + +on: + push: + paths-ignore: + - '.github/*' + - '*.md' + pull_request: + paths-ignore: + - '.github/*' + - '*.md' + +jobs: + build: + runs-on: windows-latest + env: + POWERSHELL_TELEMETRY_OPTOUT: 1 + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + - uses: microsoft/setup-msbuild@v2 + - name: Clear local NuGet cache (workaround for failed restores on windows-latest) + run: dotnet nuget locals all --clear + - name: Build + run: msbuild BuildAllTargets.proj + - name: Prepare artifacts + run: rm Output\Binaries\* -vb -Recurse -Force -Include *.exp, *.idb, *.ilk, *.iobj, *.ipdb, *.lastbuildstate, *.lib, *.obj, *.res, *.tlog + - uses: actions/upload-artifact@v4 + with: + name: Mile.Cirno_CI_Build + path: Output\Binaries