Skip to content

Commit

Permalink
improve ci for xp
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jan 9, 2025
1 parent 540d496 commit 29104e6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ jobs:
name: xmake-latest.${{env.RELEASE_NAME}}.exe
path: artifacts/${{env.RELEASE_NAME}}/xmake.exe

- name: Upload artifacts for Win32XP (exe)
if: matrix.os == 'windows-2019' && matrix.arch == 'x86'
uses: actions/upload-artifact@v4
with:
name: xmake-latest.${{env.RELEASE_NAME}}XP.exe
path: artifacts/${{env.RELEASE_NAME}}/xmake.exe

- name: Upload artifacts (zip)
if: matrix.os == 'windows-2022'
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -187,3 +194,14 @@ jobs:
asset_name: xmake-bundle-${{ steps.tagName.outputs.tag }}.${{ env.RELEASE_NAME }}.exe
asset_content_type: application/zip

- name: Publish
if: github.event.action == 'published' && matrix.os == 'windows-2019' && matrix.arch == 'x86'
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: artifacts/${{env.RELEASE_NAME}}/xmake.exe
asset_name: xmake-${{ steps.tagName.outputs.tag }}.${{ env.RELEASE_NAME }}XP.exe
asset_content_type: application/zip

0 comments on commit 29104e6

Please sign in to comment.