feat(memoh): unify embedded runtime serving and release binaries

This commit is contained in:
Ran
2026-02-24 19:39:01 +08:00
parent d6914f99ab
commit ffda558d24
18 changed files with 1564 additions and 4 deletions
+60
View File
@@ -28,6 +28,66 @@ jobs:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
build-binaries:
needs: release
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- goos: linux
goarch: amd64
- goos: linux
goarch: arm64
- goos: linux
goarch: riscv64
- goos: darwin
goarch: amd64
- goos: darwin
goarch: arm64
- goos: windows
goarch: amd64
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: lts/*
- uses: oven-sh/setup-bun@v2
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install JS dependencies
run: pnpm install --frozen-lockfile
- name: Build release binary
env:
TARGET_OS: ${{ matrix.goos }}
TARGET_ARCH: ${{ matrix.goarch }}
VERSION: ${{ github.ref_name }}
COMMIT_HASH: ${{ github.sha }}
OUTPUT_DIR: dist
run: scripts/release.sh
- name: Upload release assets
uses: softprops/action-gh-release@v2
with:
files: |
dist/*.tar.gz
dist/*.zip
tag_name: ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# # Uncomment the following lines to publish to npm on CI
#
# - run: pnpm install