mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
ci: use pnpm/action-setup and sync README install steps (#2512)
* ci(workflows): use pnpm/action-setup in build and release pipelines Replace the corepack-based pnpm setup with pnpm/action-setup and pin pnpm to v10.33.0 in the create_dmg, nightly, and release GitHub Actions workflows. * docs(readme): update pnpm setup instructions across translated READMEs
This commit is contained in:
@@ -23,6 +23,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
|
|
||||||
|
- name: Setup pnpm
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 10.33.0
|
||||||
|
run_install: false
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
@@ -30,9 +36,6 @@ jobs:
|
|||||||
cache: pnpm
|
cache: pnpm
|
||||||
cache-dependency-path: web/frontend/pnpm-lock.yaml
|
cache-dependency-path: web/frontend/pnpm-lock.yaml
|
||||||
|
|
||||||
- name: Setup pnpm
|
|
||||||
run: corepack enable && corepack install
|
|
||||||
|
|
||||||
# 3. Build the application bundle
|
# 3. Build the application bundle
|
||||||
- name: Build with Make
|
- name: Build with Make
|
||||||
run: make build ARCH=${{ matrix.arch }} && make build-macos-app ARCH=${{ matrix.arch }}
|
run: make build ARCH=${{ matrix.arch }} && make build-macos-app ARCH=${{ matrix.arch }}
|
||||||
|
|||||||
@@ -47,6 +47,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
|
|
||||||
|
- name: Setup pnpm
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 10.33.0
|
||||||
|
run_install: false
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
@@ -54,9 +60,6 @@ jobs:
|
|||||||
cache: pnpm
|
cache: pnpm
|
||||||
cache-dependency-path: web/frontend/pnpm-lock.yaml
|
cache-dependency-path: web/frontend/pnpm-lock.yaml
|
||||||
|
|
||||||
- name: Setup pnpm
|
|
||||||
run: corepack enable && corepack install
|
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v4
|
uses: docker/setup-qemu-action@v4
|
||||||
|
|
||||||
|
|||||||
@@ -65,6 +65,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
|
|
||||||
|
- name: Setup pnpm
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 10.33.0
|
||||||
|
run_install: false
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
@@ -72,9 +78,6 @@ jobs:
|
|||||||
cache: pnpm
|
cache: pnpm
|
||||||
cache-dependency-path: web/frontend/pnpm-lock.yaml
|
cache-dependency-path: web/frontend/pnpm-lock.yaml
|
||||||
|
|
||||||
- name: Setup pnpm
|
|
||||||
run: corepack enable && corepack install
|
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v4
|
uses: docker/setup-qemu-action@v4
|
||||||
|
|
||||||
|
|||||||
+3
-4
@@ -170,7 +170,7 @@ Vous pouvez aussi télécharger le binaire pour votre plateforme depuis la page
|
|||||||
Prérequis :
|
Prérequis :
|
||||||
|
|
||||||
- Go 1.25+
|
- Go 1.25+
|
||||||
- Node.js 22+ avec Corepack activé pour les builds Web UI / launcher
|
- Node.js 22+ et pnpm 10.33.0+ pour les builds Web UI / launcher
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/sipeed/picoclaw.git
|
git clone https://github.com/sipeed/picoclaw.git
|
||||||
@@ -178,8 +178,8 @@ git clone https://github.com/sipeed/picoclaw.git
|
|||||||
cd picoclaw
|
cd picoclaw
|
||||||
make deps
|
make deps
|
||||||
|
|
||||||
# Installer le gestionnaire de paquets frontend déclaré par le dépôt
|
# Installer les dépendances frontend
|
||||||
(cd web/frontend && corepack install)
|
(cd web/frontend && pnpm install --frozen-lockfile)
|
||||||
|
|
||||||
# Compiler le binaire principal
|
# Compiler le binaire principal
|
||||||
make build
|
make build
|
||||||
@@ -627,4 +627,3 @@ Discord : <https://discord.gg/V4sAZ9XWpN>
|
|||||||
|
|
||||||
WeChat :
|
WeChat :
|
||||||
<img src="assets/wechat.png" alt="WeChat group QR code" width="512">
|
<img src="assets/wechat.png" alt="WeChat group QR code" width="512">
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -167,7 +167,7 @@ Atau, unduh binary untuk platform Anda dari halaman [GitHub Releases](https://gi
|
|||||||
Prasyarat:
|
Prasyarat:
|
||||||
|
|
||||||
- Go 1.25+
|
- Go 1.25+
|
||||||
- Node.js 22+ dengan Corepack aktif untuk build Web UI / launcher
|
- Node.js 22+ dan pnpm 10.33.0+ untuk build Web UI / launcher
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/sipeed/picoclaw.git
|
git clone https://github.com/sipeed/picoclaw.git
|
||||||
@@ -175,8 +175,8 @@ git clone https://github.com/sipeed/picoclaw.git
|
|||||||
cd picoclaw
|
cd picoclaw
|
||||||
make deps
|
make deps
|
||||||
|
|
||||||
# Instal package manager frontend yang dideklarasikan repo
|
# Instal dependensi frontend
|
||||||
(cd web/frontend && corepack install)
|
(cd web/frontend && pnpm install --frozen-lockfile)
|
||||||
|
|
||||||
# Build binary inti
|
# Build binary inti
|
||||||
make build
|
make build
|
||||||
|
|||||||
+3
-3
@@ -167,7 +167,7 @@ In alternativa, scarica il binario per la tua piattaforma dalla pagina delle [Gi
|
|||||||
Prerequisiti:
|
Prerequisiti:
|
||||||
|
|
||||||
- Go 1.25+
|
- Go 1.25+
|
||||||
- Node.js 22+ con Corepack abilitato per le build Web UI / launcher
|
- Node.js 22+ e pnpm 10.33.0+ per le build Web UI / launcher
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/sipeed/picoclaw.git
|
git clone https://github.com/sipeed/picoclaw.git
|
||||||
@@ -175,8 +175,8 @@ git clone https://github.com/sipeed/picoclaw.git
|
|||||||
cd picoclaw
|
cd picoclaw
|
||||||
make deps
|
make deps
|
||||||
|
|
||||||
# Installa il package manager frontend dichiarato dal repository
|
# Installa le dipendenze frontend
|
||||||
(cd web/frontend && corepack install)
|
(cd web/frontend && pnpm install --frozen-lockfile)
|
||||||
|
|
||||||
# Compila il binario core
|
# Compila il binario core
|
||||||
make build
|
make build
|
||||||
|
|||||||
+3
-3
@@ -167,7 +167,7 @@ PicoClaw はほぼすべての Linux デバイスにデプロイできます!
|
|||||||
前提条件:
|
前提条件:
|
||||||
|
|
||||||
- Go 1.25+
|
- Go 1.25+
|
||||||
- Web UI / launcher のビルドには Corepack を有効にした Node.js 22+
|
- Web UI / launcher のビルドには Node.js 22+ と pnpm 10.33.0+ が必要
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/sipeed/picoclaw.git
|
git clone https://github.com/sipeed/picoclaw.git
|
||||||
@@ -175,8 +175,8 @@ git clone https://github.com/sipeed/picoclaw.git
|
|||||||
cd picoclaw
|
cd picoclaw
|
||||||
make deps
|
make deps
|
||||||
|
|
||||||
# リポジトリで宣言されたフロントエンド用パッケージマネージャーをインストール
|
# フロントエンド依存関係をインストール
|
||||||
(cd web/frontend && corepack install)
|
(cd web/frontend && pnpm install --frozen-lockfile)
|
||||||
|
|
||||||
# コアバイナリをビルド
|
# コアバイナリをビルド
|
||||||
make build
|
make build
|
||||||
|
|||||||
+3
-3
@@ -167,7 +167,7 @@ PicoClaw는 사실상 거의 모든 Linux 장치에 배포할 수 있습니다!
|
|||||||
필수 사항:
|
필수 사항:
|
||||||
|
|
||||||
- Go 1.25+
|
- Go 1.25+
|
||||||
- Web UI / launcher 빌드를 위한 Corepack 활성화된 Node.js 22+
|
- Web UI / launcher 빌드에는 Node.js 22+와 pnpm 10.33.0+가 필요합니다
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/sipeed/picoclaw.git
|
git clone https://github.com/sipeed/picoclaw.git
|
||||||
@@ -175,8 +175,8 @@ git clone https://github.com/sipeed/picoclaw.git
|
|||||||
cd picoclaw
|
cd picoclaw
|
||||||
make deps
|
make deps
|
||||||
|
|
||||||
# 저장소에 선언된 프런트엔드 패키지 매니저 설치
|
# 프런트엔드 의존성 설치
|
||||||
(cd web/frontend && corepack install)
|
(cd web/frontend && pnpm install --frozen-lockfile)
|
||||||
|
|
||||||
# 코어 바이너리 빌드
|
# 코어 바이너리 빌드
|
||||||
make build
|
make build
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ Alternatively, download the binary for your platform from the [GitHub Releases](
|
|||||||
Prerequisites:
|
Prerequisites:
|
||||||
|
|
||||||
- Go 1.25+
|
- Go 1.25+
|
||||||
- Node.js 22+ with Corepack enabled for Web UI / launcher builds
|
- Node.js 22+ and pnpm 10.33.0+ for Web UI / launcher builds
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/sipeed/picoclaw.git
|
git clone https://github.com/sipeed/picoclaw.git
|
||||||
@@ -175,8 +175,8 @@ git clone https://github.com/sipeed/picoclaw.git
|
|||||||
cd picoclaw
|
cd picoclaw
|
||||||
make deps
|
make deps
|
||||||
|
|
||||||
# Install frontend package manager declared by the repo
|
# Install frontend dependencies
|
||||||
(cd web/frontend && corepack install)
|
(cd web/frontend && pnpm install --frozen-lockfile)
|
||||||
|
|
||||||
# Build the core binary for the current platform
|
# Build the core binary for the current platform
|
||||||
make build
|
make build
|
||||||
|
|||||||
+3
-3
@@ -168,15 +168,15 @@ Muat turun binari untuk platform anda dari halaman [GitHub Releases](https://git
|
|||||||
Prasyarat:
|
Prasyarat:
|
||||||
|
|
||||||
- Go 1.25+
|
- Go 1.25+
|
||||||
- Node.js 22+ dengan Corepack diaktifkan untuk binaan Web UI / launcher
|
- Node.js 22+ dan pnpm 10.33.0+ untuk binaan Web UI / launcher
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/sipeed/picoclaw.git
|
git clone https://github.com/sipeed/picoclaw.git
|
||||||
cd picoclaw
|
cd picoclaw
|
||||||
make deps
|
make deps
|
||||||
|
|
||||||
# Pasang pengurus pakej frontend yang diisytiharkan oleh repositori
|
# Pasang dependensi frontend
|
||||||
(cd web/frontend && corepack install)
|
(cd web/frontend && pnpm install --frozen-lockfile)
|
||||||
|
|
||||||
# Bina binari teras
|
# Bina binari teras
|
||||||
make build
|
make build
|
||||||
|
|||||||
+3
-3
@@ -167,7 +167,7 @@ Alternativamente, baixe o binário para sua plataforma na página de [GitHub Rel
|
|||||||
Pré-requisitos:
|
Pré-requisitos:
|
||||||
|
|
||||||
- Go 1.25+
|
- Go 1.25+
|
||||||
- Node.js 22+ com Corepack habilitado para builds do Web UI / launcher
|
- Node.js 22+ e pnpm 10.33.0+ para builds do Web UI / launcher
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/sipeed/picoclaw.git
|
git clone https://github.com/sipeed/picoclaw.git
|
||||||
@@ -175,8 +175,8 @@ git clone https://github.com/sipeed/picoclaw.git
|
|||||||
cd picoclaw
|
cd picoclaw
|
||||||
make deps
|
make deps
|
||||||
|
|
||||||
# Instalar o gerenciador de pacotes de frontend declarado pelo repositório
|
# Instalar dependências do frontend
|
||||||
(cd web/frontend && corepack install)
|
(cd web/frontend && pnpm install --frozen-lockfile)
|
||||||
|
|
||||||
# Compilar o binário principal
|
# Compilar o binário principal
|
||||||
make build
|
make build
|
||||||
|
|||||||
+3
-3
@@ -167,7 +167,7 @@ Ngoài ra, tải binary cho nền tảng của bạn từ trang [GitHub Releases
|
|||||||
Yêu cầu:
|
Yêu cầu:
|
||||||
|
|
||||||
- Go 1.25+
|
- Go 1.25+
|
||||||
- Node.js 22+ với Corepack được bật cho các bản build Web UI / launcher
|
- Node.js 22+ và pnpm 10.33.0+ cho các bản build Web UI / launcher
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/sipeed/picoclaw.git
|
git clone https://github.com/sipeed/picoclaw.git
|
||||||
@@ -175,8 +175,8 @@ git clone https://github.com/sipeed/picoclaw.git
|
|||||||
cd picoclaw
|
cd picoclaw
|
||||||
make deps
|
make deps
|
||||||
|
|
||||||
# Cài đặt trình quản lý gói frontend được khai báo bởi repo
|
# Cài đặt dependencies frontend
|
||||||
(cd web/frontend && corepack install)
|
(cd web/frontend && pnpm install --frozen-lockfile)
|
||||||
|
|
||||||
# Build binary lõi
|
# Build binary lõi
|
||||||
make build
|
make build
|
||||||
|
|||||||
+3
-5
@@ -167,7 +167,7 @@ PicoClaw 几乎可以部署在任何 Linux 设备上!
|
|||||||
前置要求:
|
前置要求:
|
||||||
|
|
||||||
- Go 1.25+
|
- Go 1.25+
|
||||||
- Node.js 22+,并启用 Corepack(用于 Web UI / launcher 构建)
|
- Node.js 22+ 和 pnpm 10.33.0+(用于 Web UI / launcher 构建)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/sipeed/picoclaw.git
|
git clone https://github.com/sipeed/picoclaw.git
|
||||||
@@ -175,8 +175,8 @@ git clone https://github.com/sipeed/picoclaw.git
|
|||||||
cd picoclaw
|
cd picoclaw
|
||||||
make deps
|
make deps
|
||||||
|
|
||||||
# 安装仓库声明的前端包管理器
|
# 安装前端依赖
|
||||||
(cd web/frontend && corepack install)
|
(cd web/frontend && pnpm install --frozen-lockfile)
|
||||||
|
|
||||||
# 构建核心二进制文件
|
# 构建核心二进制文件
|
||||||
make build
|
make build
|
||||||
@@ -624,5 +624,3 @@ Discord: <https://discord.gg/V4sAZ9XWpN>
|
|||||||
|
|
||||||
WeChat:
|
WeChat:
|
||||||
<img src="assets/wechat.png" alt="WeChat group QR code" width="512">
|
<img src="assets/wechat.png" alt="WeChat group QR code" width="512">
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user