Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/tool-deepxctl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Tool/deepxctl Build
on: [push, pull_request]

jobs:
build:
strategy:
matrix:
os: [ubuntu-22.04] # 只保留 Ubuntu
go-version: [1.23.2]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

# 系统依赖安装
- name: 安装Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
cache: true

# 系统依赖安装
- name: 安装依赖 (Ubuntu)
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get update
sudo apt-get install -y git

# 构建deepxctl工具
- name: 构建deepxctl
run: |
cd tool/deepxctl
go build -v -o deepxctl

# 运行测试
- name: 运行测试
run: |
cd tool/deepxctl
./deepxctl

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"os"

coretensor "github.com/array2d/deepx/deepxctl/tensor"
coretensor "github.com/array2d/deepx/tool/deepxctl/tensor"
)

func PrintCmd() {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion deepxctl/go.mod → tool/deepxctl/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/array2d/deepx/deepxctl
module github.com/array2d/deepx/tool/deepxctl

go 1.23.2

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions deepxctl/main.go → tool/deepxctl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"path/filepath"

"github.com/array2d/deepx/deepxctl/cmd/tensor"
"github.com/array2d/deepx/tool/deepxctl/cmd/tensor"
)

var version = "0.1.0"
Expand All @@ -26,7 +26,7 @@ func main() {

if len(os.Args) < 2 {
printUsage()
os.Exit(1)
os.Exit(0)
}

// 获取子命令
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading