From b7bc5ee3b3a4308687c2e42a5cbcf9d830184690 Mon Sep 17 00:00:00 2001 From: wed15 Date: Fri, 19 Jun 2026 07:45:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.github/workflows/build.ym?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 50 ++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 801f180..fa75afd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1 +1,49 @@ -47 \ No newline at end of file +on: + pull_request: + push: + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + steps: + - name: debug-env + run: | + echo USERPROFILE=%USERPROFILE% + echo HOME=%HOME% + echo. + where git + git --version + echo. + git config --list --show-origin | findstr /i "insteadOf sslVerify proxy" + shell: cmd + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup XMake + uses: xmake-io/github-action-setup-xmake@v1 + + - name: Cache + uses: actions/cache@v4 + with: + path: | + ~/AppData/Local/.xmake + key: xmake-${{ hashFiles('xmake.lua') }} + restore-keys: | + xmake- + + - name: Update Repo + run: xmake repo -u + + - name: Update Project + run: xmake f -a x64 -m release -p windows -v -y + + - name: Build Project + run: xmake -v -y + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: ${{ github.event.repository.name }}-windows-x64-${{ github.sha }} + path: | + bin/ \ No newline at end of file