From 9f756dcf1c8dd5534b1d7b3a9a81edb0d3ca6f1e Mon Sep 17 00:00:00 2001 From: IMXNOOBX <69653071+IMXNOOBX@users.noreply.github.com> Date: Sat, 5 Jul 2025 13:13:00 +0200 Subject: [PATCH] Added auto build workflow --- .github/workflows/auto_build.yml | 46 ++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/auto_build.yml diff --git a/.github/workflows/auto_build.yml b/.github/workflows/auto_build.yml new file mode 100644 index 0000000..8f24eb9 --- /dev/null +++ b/.github/workflows/auto_build.yml @@ -0,0 +1,46 @@ +name: Build Project + +on: + workflow_dispatch: + push: + branches: + - main + paths-ignore: + - '**/*.json' + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Visual Studio + uses: microsoft/setup-msbuild@v1 + + # - name: Install vcpkg + # run: | + # git clone https://github.com/microsoft/vcpkg.git + # .\vcpkg\bootstrap-vcpkg.bat + + # - name: Install dependencies + # run: .\vcpkg\vcpkg.exe install xxxx:x64-windows-static + + # - name: Set VCPKG_ROOT + # run: echo "VCPKG_ROOT=$PWD\vcpkg" >> $GITHUB_ENV + + # - name: Integrate vcpkg with MSBuild + # run: .\vcpkg\vcpkg.exe integrate install + + - name: Build solution + env: + VCPKG_ROOT: ${{ env.VCPKG_ROOT }} + run: msbuild cs2-external-esp.sln /p:Configuration=Release + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: build-artifacts + path: | + x64/Release/* \ No newline at end of file