commit
25b8f2eafa
3 changed files with 20 additions and 5 deletions
11
.github/workflows/build-linux.yml
vendored
11
.github/workflows/build-linux.yml
vendored
|
|
@ -6,6 +6,9 @@ on:
|
|||
tags:
|
||||
description: "Version tags"
|
||||
|
||||
env:
|
||||
VERSION: 0.9.0
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
|
|
@ -104,11 +107,15 @@ jobs:
|
|||
run: |
|
||||
make tools
|
||||
|
||||
- name: Get Version
|
||||
run: |
|
||||
echo VERSION=$(cat share/const.go |grep 'const VERSION' | awk '{print $4}' | sed "s/\"//g") >> $GITHUB_ENV
|
||||
|
||||
- name: Make Artifacts Linux
|
||||
run: |
|
||||
make artifacts-linux
|
||||
mv dist/release/yao-0.10.3-dev-linux-arm64 dist/release/yao-0.10.3-unstable-linux-arm64
|
||||
mv dist/release/yao-0.10.3-dev-linux-amd64 dist/release/yao-0.10.3-unstable-linux-amd64
|
||||
mv dist/release/yao-$VERSION-dev-linux-arm64 dist/release/yao-$VERSION-unstable-linux-arm64
|
||||
mv dist/release/yao-$VERSION-dev-linux-amd64 dist/release/yao-$VERSION-unstable-linux-amd64
|
||||
|
||||
- name: Configure COS For Silicon Valley
|
||||
env:
|
||||
|
|
|
|||
12
.github/workflows/build-macos.yml
vendored
12
.github/workflows/build-macos.yml
vendored
|
|
@ -5,6 +5,10 @@ on:
|
|||
inputs:
|
||||
tags:
|
||||
description: "Version tags"
|
||||
|
||||
env:
|
||||
VERSION: 0.9.0
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
|
|
@ -100,11 +104,15 @@ jobs:
|
|||
run: |
|
||||
make tools
|
||||
|
||||
- name: Get Version
|
||||
run: |
|
||||
echo VERSION=$(cat share/const.go |grep 'const VERSION' | awk '{print $4}' | sed "s/\"//g") >> $GITHUB_ENV
|
||||
|
||||
- name: Make Artifacts MacOS
|
||||
run: |
|
||||
make artifacts-macos
|
||||
mv dist/release/yao-0.10.3-dev-darwin-arm64 dist/release/yao-0.10.3-unstable-darwin-arm64
|
||||
mv dist/release/yao-0.10.3-dev-darwin-amd64 dist/release/yao-0.10.3-unstable-darwin-amd64
|
||||
mv dist/release/yao-$VERSION-dev-darwin-arm64 dist/release/yao-$VERSION-unstable-darwin-arm64
|
||||
mv dist/release/yao-$VERSION-dev-darwin-amd64 dist/release/yao-$VERSION-unstable-darwin-amd64
|
||||
|
||||
- name: Configure COS For Silicon Valley
|
||||
env:
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ func (app *Connector) init() error {
|
|||
fields := []string{"id", "file", "source", "created_at", "updated_at", "expired_at"}
|
||||
for _, field := range fields {
|
||||
if !tab.HasColumn(field) {
|
||||
return fmt.Errorf("%s is required", field)
|
||||
return fmt.Errorf("%s table %s field %s is required", app.Widget, app.Table, field)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue