diff options
| author | ruki <[email protected]> | 2024-09-13 22:57:38 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-09-13 22:57:38 +0800 |
| commit | 4fe5a495a81ebb3c7f032dfb9fd7f92298f41510 (patch) | |
| tree | 93999df850b546fc0c1e49e02037cfd5232c8952 /.github/workflows/windows.yml | |
| parent | 58d92b1928f19755ef3f8695bb79609f94764241 (diff) | |
add xmake bundle binary
Diffstat (limited to '.github/workflows/windows.yml')
| -rw-r--r-- | .github/workflows/windows.yml | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 5eee883c1..bca0db4f5 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -57,7 +57,10 @@ jobs: - name: Build run: | cd core - xmake f -vD -a ${{ matrix.arch }} + xmake f -vD -a ${{ matrix.arch }} --embed=y -c + xmake + cp build/xmake.exe ../artifacts/${{env.RELEASE_NAME}}/xmake-bundle.exe + xmake f -vD -a ${{ matrix.arch }} -c xmake -vD cd .. @@ -104,6 +107,13 @@ jobs: name: xmake-latest.${{ env.RELEASE_NAME }}.sha256 path: artifacts/${{env.RELEASE_NAME}}/shafile + - name: Upload artifacts (bundle) + if: matrix.os == 'windows-2022' + uses: actions/upload-artifact@v4 + with: + name: xmake-bundle-latest.${{env.RELEASE_NAME}}.exe + path: artifacts/${{env.RELEASE_NAME}}/xmake-bundle.exe + # upload artifacts to latest release - name: Inject slug/short variables uses: rlespinasse/[email protected] @@ -166,3 +176,14 @@ jobs: asset_name: xmake-${{ steps.tagName.outputs.tag }}.${{ env.RELEASE_NAME }}.sha256 asset_content_type: application/zip + - name: Publish + if: github.event.action == 'published' && matrix.os == 'windows-2022' + 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-bundle.exe + asset_name: xmake-bundle-${{ steps.tagName.outputs.tag }}.${{ env.RELEASE_NAME }}.exe + asset_content_type: application/zip + |
