Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
6ebfb426
Commit
6ebfb426
authored
Oct 18, 2021
by
suyanlong
Committed by
33cn
Oct 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Adjust github action
parent
7b5bd4f6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
30 deletions
+52
-30
automake.yml
.github/workflows/automake.yml
+1
-9
manual_make_bin.yml
.github/workflows/manual_make_bin.yml
+32
-0
release.yml
.github/workflows/release.yml
+1
-10
.gitignore
.gitignore
+1
-0
.releaserc.yml
.releaserc.yml
+8
-2
Makefile
Makefile
+9
-9
No files found.
.github/workflows/automake.yml
View file @
6ebfb426
...
@@ -33,21 +33,13 @@ jobs:
...
@@ -33,21 +33,13 @@ jobs:
fetch-depth
:
0
fetch-depth
:
0
persist-credentials
:
false
# <--- this
persist-credentials
:
false
# <--- this
-
name
:
compile binary
run
:
make all-arch
-
name
:
Upload artifact bin
uses
:
actions/upload-artifact@v2
with
:
name
:
chain33-artifact
path
:
build/*.tar
-
name
:
Semantic Release
-
name
:
Semantic Release
uses
:
cycjimmy/semantic-release-action@v2
uses
:
cycjimmy/semantic-release-action@v2
id
:
semantic
id
:
semantic
with
:
with
:
branch
:
master
branch
:
master
extra_plugins
:
|
extra_plugins
:
|
@semantic-release/exec
@semantic-release/changelog
@semantic-release/changelog
@semantic-release/git
@semantic-release/git
env
:
env
:
...
...
.github/workflows/manual_make_bin.yml
0 → 100644
View file @
6ebfb426
# This is a basic workflow that is manually triggered
name
:
manually make bin for all branch
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on
:
[
push
,
pull_request
]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs
:
automake
:
name
:
automake
runs-on
:
ubuntu-latest
steps
:
-
name
:
Set up Golang env
uses
:
actions/setup-go@v2
with
:
go-version
:
1.17
id
:
go
-
name
:
checkout repo
uses
:
actions/checkout@v2
-
name
:
compile binary
run
:
make all-arch
-
name
:
Upload artifact bin
uses
:
actions/upload-artifact@v2
with
:
name
:
chain33-artifact
path
:
|
build/*.tar.gz
build/*.zip
.github/workflows/release.yml
View file @
6ebfb426
...
@@ -23,21 +23,13 @@ jobs:
...
@@ -23,21 +23,13 @@ jobs:
fetch-depth
:
0
fetch-depth
:
0
persist-credentials
:
false
# <--- this
persist-credentials
:
false
# <--- this
-
name
:
compile binary
run
:
make all-arch
-
name
:
Upload artifact bin
uses
:
actions/upload-artifact@v2
with
:
name
:
chain33-artifact
path
:
build/*.tar
-
name
:
Semantic Release
-
name
:
Semantic Release
uses
:
cycjimmy/semantic-release-action@v2
uses
:
cycjimmy/semantic-release-action@v2
id
:
semantic
id
:
semantic
with
:
with
:
branch
:
master
branch
:
master
extra_plugins
:
|
extra_plugins
:
|
@semantic-release/exec
@semantic-release/changelog
@semantic-release/changelog
@semantic-release/git
@semantic-release/git
env
:
env
:
...
@@ -51,4 +43,3 @@ jobs:
...
@@ -51,4 +43,3 @@ jobs:
echo ${{ steps.semantic.outputs.new_release_minor_version }}
echo ${{ steps.semantic.outputs.new_release_minor_version }}
echo ${{ steps.semantic.outputs.new_release_patch_version }}
echo ${{ steps.semantic.outputs.new_release_patch_version }}
.gitignore
View file @
6ebfb426
...
@@ -47,4 +47,5 @@ build/parawallet/
...
@@ -47,4 +47,5 @@ build/parawallet/
build/sendstock
build/sendstock
build/sendstock.toml
build/sendstock.toml
build/*.csv
build/*.csv
build/CHANGELOG.md
plugin/dapp/dex/boss/build/
plugin/dapp/dex/boss/build/
.releaserc.yml
View file @
6ebfb426
...
@@ -10,8 +10,14 @@
...
@@ -10,8 +10,14 @@
# "@semantic-release/github", #Default 4
# "@semantic-release/github", #Default 4
[
[
"
@semantic-release/github"
,
"
@semantic-release/github"
,
{
"
assets"
:
[
"
build/*.tar"
]}
{
"
assets"
:
[
"
build/*.tar
.gz"
,
"
build/*.zip
"
]}
],
],
"
@semantic-release/git"
,
"
@semantic-release/git"
,
]
[
"
@semantic-release/exec"
,
{
"
prepareCmd"
:
"
make
all-arch"
}
]
]
}
}
Makefile
View file @
6ebfb426
...
@@ -40,37 +40,37 @@ PLATFORM_LIST = \
...
@@ -40,37 +40,37 @@ PLATFORM_LIST = \
WINDOWS_ARCH_LIST
=
\
WINDOWS_ARCH_LIST
=
\
windows-amd64
windows-amd64
GOBUILD
=
go build
$(BUILD_FLAGS)
$(LDFLAGS)
GOBUILD
=
go build
$(BUILD_FLAGS)
" -w -s"
darwin-amd64
:
darwin-amd64
:
GOARCH
=
amd64
GOOS
=
darwin
$(GOBUILD)
-o
$(APP)
-
$@
$(SRC)
GOARCH
=
amd64
GOOS
=
darwin
$(GOBUILD)
-o
$(APP)
-
$@
$(SRC)
GOARCH
=
amd64
GOOS
=
darwin
$(GOBUILD)
-o
$(CLI)
-
$@
$(SRC_CLI)
GOARCH
=
amd64
GOOS
=
darwin
$(GOBUILD)
-o
$(CLI)
-
$@
$(SRC_CLI)
cp
chain33.para.toml chain33.toml build/
&&
cd
build
&&
\
cp
chain33.para.toml chain33.toml
CHANGELOG.md
build/
&&
cd
build
&&
\
chmod
+x chain33-darwin-amd64
&&
\
chmod
+x chain33-darwin-amd64
&&
\
chmod
+x chain33-cli-darwin-amd64
&&
\
chmod
+x chain33-cli-darwin-amd64
&&
\
tar
-zcvf
chain33-darwin-amd64.tar
chain33-darwin-amd64 chain33-cli-darwin-amd64 chain33.para.toml chain33.toml
tar
-zcvf
chain33-darwin-amd64.tar
.gz chain33-darwin-amd64 chain33-cli-darwin-amd64 chain33.para.toml chain33.toml CHANGELOG.md
darwin-arm64
:
darwin-arm64
:
GOARCH
=
arm64
GOOS
=
darwin
$(GOBUILD)
-o
$(APP)
-
$@
$(SRC)
GOARCH
=
arm64
GOOS
=
darwin
$(GOBUILD)
-o
$(APP)
-
$@
$(SRC)
GOARCH
=
arm64
GOOS
=
darwin
$(GOBUILD)
-o
$(CLI)
-
$@
$(SRC_CLI)
GOARCH
=
arm64
GOOS
=
darwin
$(GOBUILD)
-o
$(CLI)
-
$@
$(SRC_CLI)
cp
chain33.para.toml chain33.toml build/
&&
cd
build
&&
\
cp
chain33.para.toml chain33.toml
CHANGELOG.md
build/
&&
cd
build
&&
\
chmod
+x chain33-darwin-arm64
&&
\
chmod
+x chain33-darwin-arm64
&&
\
chmod
+x chain33-cli-darwin-arm64
&&
\
chmod
+x chain33-cli-darwin-arm64
&&
\
tar
-zcvf
chain33-darwin-arm64.tar
chain33-darwin-arm64 chain33-cli-darwin-arm64 chain33.toml chain33.para.toml
tar
-zcvf
chain33-darwin-arm64.tar
.gz chain33-darwin-arm64 chain33-cli-darwin-arm64 chain33.toml chain33.para.toml CHANGELOG.md
linux-amd64
:
linux-amd64
:
GOARCH
=
amd64
GOOS
=
linux
$(GOBUILD)
-o
$(APP)
-
$@
$(SRC)
GOARCH
=
amd64
GOOS
=
linux
$(GOBUILD)
-o
$(APP)
-
$@
$(SRC)
GOARCH
=
amd64
GOOS
=
linux
$(GOBUILD)
-o
$(CLI)
-
$@
$(SRC_CLI)
GOARCH
=
amd64
GOOS
=
linux
$(GOBUILD)
-o
$(CLI)
-
$@
$(SRC_CLI)
cp
chain33.para.toml chain33.toml build/
&&
cd
build
&&
\
cp
chain33.para.toml chain33.toml
CHANGELOG.md
build/
&&
cd
build
&&
\
chmod
+x chain33-linux-amd64
&&
\
chmod
+x chain33-linux-amd64
&&
\
chmod
+x chain33-cli-linux-amd64
&&
\
chmod
+x chain33-cli-linux-amd64
&&
\
tar
-zcvf
chain33-linux-amd64.tar
chain33-linux-amd64 chain33-cli-linux-amd64 chain33.para.toml chain33.toml
tar
-zcvf
chain33-linux-amd64.tar
.gz chain33-linux-amd64 chain33-cli-linux-amd64 chain33.para.toml chain33.toml CHANGELOG.md
windows-amd64
:
windows-amd64
:
GOARCH
=
amd64
GOOS
=
windows
$(GOBUILD)
-o
$(APP)
-
$@
.exe
$(SRC)
GOARCH
=
amd64
GOOS
=
windows
$(GOBUILD)
-o
$(APP)
-
$@
.exe
$(SRC)
GOARCH
=
amd64
GOOS
=
windows
$(GOBUILD)
-o
$(CLI)
-
$@
.exe
$(SRC_CLI)
GOARCH
=
amd64
GOOS
=
windows
$(GOBUILD)
-o
$(CLI)
-
$@
.exe
$(SRC_CLI)
cp
chain33.para.toml chain33.toml build/
&&
cd
build
&&
\
cp
chain33.para.toml chain33.toml
CHANGELOG.md
build/
&&
cd
build
&&
\
tar
-zcvf
chain33-windows-amd64.tar chain33-windows-amd64.exe chain33-cli-windows-amd64.exe chain33.para.toml chain33.toml
zip
-j
chain33-windows-amd64.zip chain33-windows-amd64.exe chain33-cli-windows-amd64.exe chain33.para.toml chain33.toml CHANGELOG.md
all-arch
:
$(PLATFORM_LIST) $(WINDOWS_ARCH_LIST)
all-arch
:
$(PLATFORM_LIST) $(WINDOWS_ARCH_LIST)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment