Skip to content

Commit

Permalink
arm-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Feb 12, 2022
1 parent 00f7696 commit cf68a5b
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,26 @@ jobs:
path: gou
token: ${{ secrets.TOKEN }}

- name: Checkout V8Go
uses: actions/checkout@v2
with:
repository: rogchap/v8go
ref: 5e91d3d9dcabd2986f901b6b31590e49fc3c4dd8
path: v8go

- name: Checkout UI
uses: actions/checkout@v2
with:
repository: yaoapp/xiang-ui
repository: yaoapp/xgen
path: ui
token: ${{ secrets.TOKEN }}

- name: Move Kun, Xun, Gou, UI
- name: Move Kun, Xun, Gou, UI, V8Go
run: |
mv kun ../
mv xun ../
mv gou ../
mv v8go ../
mv ui ../
ls -l .
ls -l ../
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,19 @@ jobs:
path: gou
token: ${{ secrets.TOKEN }}

- name: Move Kun, Xun, Gou
- name: Checkout V8Go
uses: actions/checkout@v2
with:
repository: rogchap/v8go
ref: 5e91d3d9dcabd2986f901b6b31590e49fc3c4dd8
path: v8go

- name: Move Kun, Xun, Gou, V8Go
run: |
mv kun ../
mv xun ../
mv gou ../
mv v8go ../
ls -l .
ls -l ../
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ yao-test
dev.sh
logs
logs/application.log
yao-arm64
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,5 @@ replace github.com/yaoapp/kun => ../kun // kun local
replace github.com/yaoapp/xun => ../xun // gou local

replace github.com/yaoapp/gou => ../gou // gou local

replace rogchap.com/v8go => ../v8go
3 changes: 2 additions & 1 deletion share/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package share
// Logs
// session -> freeport fix bug
// 更新制品目录 -> ui/downloads
// Arm64 制品

// VERSION 版本号
const VERSION = "0.9.0"
const VERSION = "0.9.1"

// BUILDIN 应用打包成一个制品
const BUILDIN = false
Expand Down
13 changes: 13 additions & 0 deletions shell/arm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# /bin/bash
# V8
go clean --cache
# cp ../gou/go.mod ../gou/go.mod.bak
# echo "replace rogchap.com/v8go => ../v8go" >> ../gou/go.mod

CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ \
CGO_ENABLED=1 GOOS=linux GOARCH=arm64 \
go build -ldflags="-extldflags=-static" -v -o ./yao-arm64

# cp ../gou/go.mod.bak ../gou/go.mod
# rm ../gou/go.mod.bak

0 comments on commit cf68a5b

Please sign in to comment.