[_]
This commit is contained in:
parent
7776288b23
commit
7a6368c01a
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:
|
tags:
|
||||||
description: "Version tags"
|
description: "Version tags"
|
||||||
|
|
||||||
|
env:
|
||||||
|
VERSION: 0.9.0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
|
|
@ -104,11 +107,15 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
make tools
|
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
|
- name: Make Artifacts Linux
|
||||||
run: |
|
run: |
|
||||||
make artifacts-linux
|
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-$VERSION-dev-linux-arm64 dist/release/yao-$VERSION-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-amd64 dist/release/yao-$VERSION-unstable-linux-amd64
|
||||||
|
|
||||||
- name: Configure COS For Silicon Valley
|
- name: Configure COS For Silicon Valley
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
12
.github/workflows/build-macos.yml
vendored
12
.github/workflows/build-macos.yml
vendored
|
|
@ -5,6 +5,10 @@ on:
|
||||||
inputs:
|
inputs:
|
||||||
tags:
|
tags:
|
||||||
description: "Version tags"
|
description: "Version tags"
|
||||||
|
|
||||||
|
env:
|
||||||
|
VERSION: 0.9.0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
|
|
@ -100,11 +104,15 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
make tools
|
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
|
- name: Make Artifacts MacOS
|
||||||
run: |
|
run: |
|
||||||
make artifacts-macos
|
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-$VERSION-dev-darwin-arm64 dist/release/yao-$VERSION-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-amd64 dist/release/yao-$VERSION-unstable-darwin-amd64
|
||||||
|
|
||||||
- name: Configure COS For Silicon Valley
|
- name: Configure COS For Silicon Valley
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,7 @@ func (app *Connector) init() error {
|
||||||
fields := []string{"id", "file", "source", "created_at", "updated_at", "expired_at"}
|
fields := []string{"id", "file", "source", "created_at", "updated_at", "expired_at"}
|
||||||
for _, field := range fields {
|
for _, field := range fields {
|
||||||
if !tab.HasColumn(field) {
|
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