build(cli): fix build path and unify build command

Use the shared build target for CLI binaries and upload
artifacts to GitHub releases on tag builds.
This commit is contained in:
yusing
2026-02-25 14:40:06 +08:00
parent 0716d3dc0d
commit 733716ba2b
2 changed files with 28 additions and 12 deletions

View File

@@ -47,14 +47,20 @@ jobs:
- name: Build CLI
run: |
make CLI_BIN_PATH=bin/${{ matrix.binary_name }} build-cli
make cli=1 NAME=${{ matrix.binary_name }} build
- name: Check binary
run: |
file bin/${{ matrix.binary_name }}
- name: Upload artifact
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.binary_name }}
path: bin/${{ matrix.binary_name }}
- name: Upload to release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: bin/${{ matrix.binary_name }}