From 40ca08f6f3d8fae2b9d21dad5f0f942909af6e3c Mon Sep 17 00:00:00 2001 From: wed15 Date: Fri, 19 Jun 2026 07:48:32 +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 | 40 +++++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb03248..52f83fa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,13 +7,33 @@ 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