Skip to content

Commit

Permalink
Update cosmocc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi authored Jan 17, 2025
1 parent aa7b845 commit 18d9b70
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/cosmocc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 18d9b70

Please sign in to comment.