summaryrefslogtreecommitdiff
path: root/.github/workflows/macos.yml
diff options
context:
space:
mode:
authorruki <[email protected]>2024-09-13 22:57:38 +0800
committerruki <[email protected]>2024-09-13 22:57:38 +0800
commit4fe5a495a81ebb3c7f032dfb9fd7f92298f41510 (patch)
tree93999df850b546fc0c1e49e02037cfd5232c8952 /.github/workflows/macos.yml
parent58d92b1928f19755ef3f8695bb79609f94764241 (diff)
add xmake bundle binary
Diffstat (limited to '.github/workflows/macos.yml')
-rw-r--r--.github/workflows/macos.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
index 6eefc3a16..a75325b2c 100644
--- a/.github/workflows/macos.yml
+++ b/.github/workflows/macos.yml
@@ -48,6 +48,9 @@ jobs:
brew install gnu-tar
cd core
xmake pack -y --autobuild=n --basename=xmake -o ../artifacts xmakesrc
+ xmake f --embed=y -c
+ xmake
+ cp build/xmake ../artifacts/xmake-bundle
cd ..
- uses: actions/upload-artifact@v4
with:
@@ -61,6 +64,10 @@ jobs:
with:
name: xmake-latest.zip
path: artifacts/xmake.zip
+ - uses: actions/upload-artifact@v4
+ with:
+ name: xmake-bundle.macos.x86_64
+ path: artifact/xmake-bundle
# upload artifacts to latest release
- name: Get Previous tag
@@ -119,3 +126,14 @@ jobs:
asset_path: artifacts/xmake.zip
asset_name: xmake-${{ steps.tagName.outputs.tag }}.zip
asset_content_type: application/zip
+
+ - name: Publish bundle binary
+ if: github.event.action == 'published'
+ uses: actions/[email protected]
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ github.event.release.upload_url }}
+ asset_path: artifacts/xmake-bundle
+ asset_name: xmake-bundle-${{ steps.tagName.outputs.tag }}.macos.x86_64
+ asset_content_type: application/zip