summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-01-17 21:49:08 +0800
committerGitHub <[email protected]>2025-01-17 21:49:08 +0800
commit18d9b70153d64b507b7c2e501e523d40df439031 (patch)
treee9bc5417401ba262b3320de2efb1da8f4864e818
parentaa7b845d9eb14c7d6f4028a818e945787371dee2 (diff)
Update cosmocc.yml
-rw-r--r--.github/workflows/cosmocc.yml17
1 files changed, 16 insertions, 1 deletions
diff --git a/.github/workflows/cosmocc.yml b/.github/workflows/cosmocc.yml
index f70c62082..705dfa958 100644
--- a/.github/workflows/cosmocc.yml
+++ b/.github/workflows/cosmocc.yml
@@ -23,6 +23,9 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
+
+ - uses: little-core-labs/[email protected]
+ id: tagName
- name: Prepare local xmake
run: cp -rf . ../xmake-source
@@ -71,7 +74,19 @@ jobs:
rm -r "${INSTALL_DIR}"
- name: Artifact
+ if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
- name: xmake-bundle.cosmocc
+ name: xmake-bundle.cosmocc.x86_64
path: core/build/xmake
+
+ - name: Publish bundle binary
+ if: github.event.action == 'published' && matrix.os == 'ubuntu-latest'
+ uses: actions/[email protected]
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ github.event.release.upload_url }}
+ asset_path: core/build/xmake
+ asset_name: xmake-bundle-${{ steps.tagName.outputs.tag }}.cosmocc.x86_64
+ asset_content_type: application/zip