Skip to content

Commit 57a2f4d

Browse files
boddumanoharKishan-Dhakanshahnawaz-creatorpeterlimgcnlangzi
authored
Sprint 1.11 (#554)
* Updated self hosted macos-runner & windows-runner (#517) * Updated self hosted macos-runner & windows-runner * updated self hosted runners * Fix upload --web-streaming (#527) * Fix upload --web-streaming Update gosdk to use correct ffmpeg commands * Fix tests * fix(gomod): upgraded gosdk with latest sprint-1.11 * chore(gomod): go mod tidy --------- Co-authored-by: Lz <[email protected]> * feature: added all provider for stake pool related commands (#526) * update gosdk for list optimization * updated gosdk * update gosdk * fix wait when using multiupload (#533) * use msys2 to build windows binaries (#524) * debug windows builds * start builds on PRs * remove un-used targets * fix syntax error * run only windows * printend * remove set GITHUB_ENV * install make * install choco * set choco install path * build-windows * install zip * also include dll files in the zip file * comment out upload-release-action git action * also install unzip * cleanup release * cleanup workspace * overwrite current files while unzipping * add back gosdk.yaml * use .yml extension * actions checkout * use docker to build linux binary * lsb_release print * Revert "Merge pull request #498 from 0chain/hm90121-patch-1" This reverts commit 33f24ae, reversing changes made to 46d3112. * Remove download from single blobber (#543) * Fix download (#544) * updated gosdk * Cleaned up update_terms flag * update gosdk (#548) * add ubuntu 20 runner (#546) * add ubuntu 20 runner * fix runner * add ubuntu20 runner * add ubuntu20 runner * add ubuntu20 runner * fix runner * add ubuntu 20 runner * add ubuntu 20 runner * add ubuntu 20 runner * add ubuntu 20 runner --------- Co-authored-by: Yury <[email protected]> * update gosdk * go mod tidy * Updated gosdk (#551) * Un Comment windows and macos build runs (#549) * uncomment windows build runs * update gosdk to the latest * update to Go1.20 (#550) * update to go version 1.20 * update gosdk --------- Co-authored-by: Yury <[email protected]> * Fix update alloc min lock * Feature: implement fork per run strategy (#553) * feature: added fork creation * fix: fixed bug * feature: improved Tenderly fork creation flow * update gosdk (#557) * feature: added custom block number during Tenderly fork creation (#560) * upgrade GoSDK to sprint-1.11 (#559) Co-authored-by: service-0chain <[email protected]> * Fix update alloc min lock * upgrade GoSDK to sprint-1.11 * upgrade GoSDK to sprint-1.11 (#564) Co-authored-by: service-0chain <[email protected]> * upgrade GoSDK to sprint-1.11 (#566) Co-authored-by: service-0chain <[email protected]> * upgrade GoSDK to sprint-1.11 (#567) Co-authored-by: service-0chain <[email protected]> * use multi download in sync (#569) * update gosdk to v1.11.0 (#571) --------- Co-authored-by: Kishan Dhakan <[email protected]> Co-authored-by: shahnawaz-creator <[email protected]> Co-authored-by: peterlimg <[email protected]> Co-authored-by: Lz <[email protected]> Co-authored-by: Yaroslav Svitlytskyi <[email protected]> Co-authored-by: Hitenjain14 <[email protected]> Co-authored-by: dabasov <[email protected]> Co-authored-by: Kishan Dhakan <[email protected]> Co-authored-by: Hitenjain14 <[email protected]> Co-authored-by: devyetii <[email protected]> Co-authored-by: Jayash Satolia <[email protected]> Co-authored-by: Jayash Satolia <[email protected]> Co-authored-by: Tapish Sinha <[email protected]> Co-authored-by: GuruHubb <[email protected]> Co-authored-by: service-0chain <[email protected]> Co-authored-by: service-0chain <[email protected]>
1 parent d7894c4 commit 57a2f4d

18 files changed

+358
-547
lines changed

.github/workflows/build-zbox.yaml

Lines changed: 56 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ on:
33
push:
44
branches:
55
- master
6-
- dev
6+
- sprint*
77
- staging
88
tags:
99
- 'v*.*.*'
10+
pull_request:
1011
workflow_dispatch:
1112

1213
jobs:
1314
build-linux:
1415
name: Build-linux
15-
runs-on: [self-hosted, build]
16+
runs-on: [self-hosted, ubuntu-build]
1617
steps:
1718
- name: Install deps
1819
run: |
@@ -22,39 +23,21 @@ jobs:
2223
- name: Checkout
2324
uses: actions/checkout@v2
2425

26+
- name: Setup gopath and gocache
27+
run: |
28+
echo "GOPATH=$HOME/go" >> $GITHUB_ENV
29+
echo "GOCACHE=$GITHUB_WORKSPACE/.gocache" >> $GITHUB_ENV
30+
2531
- name: Setup go 1.20
26-
uses: actions/setup-go@v2
32+
uses: actions/setup-go@v3
2733
with:
28-
go-version: '1.20' # The Go version to download (if necessary) and use.
29-
30-
- name: Set GITHUB_ENV
31-
run: |
32-
echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
33-
34-
if [[ "${{github.base_ref}}" == "master" || "${{github.ref}}" == "refs/heads/master" ]]; then
35-
echo "TAG=v0.0.0-master" >> $GITHUB_ENV
36-
elif [[ "${{github.base_ref}}" == "dev" || "${{github.ref}}" == "refs/heads/dev" ]]; then
37-
echo "TAG=v0.0.0-dev" >> $GITHUB_ENV
38-
elif [[ "${{github.base_ref}}" == "staging" || "${{github.ref}}" == "refs/heads/staging" ]]; then
39-
echo "TAG=v0.0.0-staging" >> $GITHUB_ENV
40-
else
41-
echo "TAG=$(echo ${GITHUB_REF#refs/tags/})" >> $GITHUB_ENV
42-
fi
34+
go-version: '1.20'
4335

4436
- name: Install
45-
run: make install
46-
47-
- name: Zip release
48-
run: tar -czvf zbox-linux.tar.gz ./zbox
49-
50-
- name: Upload binaries to release
51-
uses: svenstaro/upload-release-action@v2
52-
with:
53-
repo_token: ${{ secrets.GITHUB_TOKEN }}
54-
file: zbox-linux.tar.gz
55-
tag: ${{ env.TAG }}
56-
overwrite: true
57-
file_glob: true
37+
run: |
38+
lsb_release -a
39+
40+
make install
5841
5942
- name: 'Upload Artifact'
6043
uses: actions/upload-artifact@v2
@@ -66,51 +49,61 @@ jobs:
6649
build-windows:
6750
name: Build-windows
6851
runs-on: windows-runner
52+
defaults:
53+
run:
54+
shell: msys2 {0}
55+
strategy:
56+
matrix:
57+
sys: [ MINGW64 ]
6958
steps:
70-
- name: Setup go 1.20
71-
uses: actions/setup-go@v2
59+
- uses: msys2/setup-msys2@v2
7260
with:
73-
go-version: '1.20' # The Go version to download (if necessary) and use.
61+
msystem: ${{matrix.sys}}
7462

75-
- name: Checkout
76-
uses: actions/checkout@v2
63+
- name: Install libraries
64+
run: |
65+
echo 'Y'| pacman -S base-devel git gcc make
7766
78-
- name: Set GITHUB_ENV
67+
- name: Install Clang and Go for MINGW64
7968
run: |
80-
IF ( "${{github.base_ref}}" -eq "master" -OR "${{github.ref}}" -eq "refs/heads/master" ){
81-
echo "TAG=v0.0.0-master" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
82-
} ElseIf ( "${{github.base_ref}}" -eq "dev" -OR "${{github.ref}}" -eq "refs/heads/dev" ){
83-
echo "TAG=v0.0.0-dev" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
84-
} ElseIf ( "${{github.base_ref}}" -eq "staging" -OR "${{github.ref}}" -eq "refs/heads/staging" ){
85-
echo "TAG=v0.0.0-staging" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
86-
} ELSE {
87-
echo "TAG=${{github.ref}}" | %{$_ -replace('refs/tags/', '')} | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
88-
}
69+
echo 'y'| pacman -S mingw-w64-x86_64-clang mingw-w64-x86_64-go zip unzip
70+
71+
- name: Set environment variables
72+
run: |
73+
export GOROOT=/mingw64/lib/go
74+
export GOPATH=/mingw64
75+
export PATH=$PATH:$GOROOT/bin
76+
export PATH=$PATH:/usr/bin/7z
77+
78+
# use clang as a default compiler for CGO
79+
go env -w "CC=/mingw64/bin/clang.exe"
80+
81+
- name: Checkout
82+
uses: actions/checkout@v2
8983

9084
- name: Install
9185
run: make install
9286

9387
- name: Zip release
9488
run: |
95-
copy zbox zbox.exe
96-
7z a zbox-windows.zip zbox.exe
97-
98-
- name: Upload binaries to release
99-
uses: svenstaro/upload-release-action@v2
100-
with:
101-
repo_token: ${{ secrets.GITHUB_TOKEN }}
102-
file: zbox-windows.zip
103-
tag: ${{ env.TAG }}
104-
overwrite: true
105-
file_glob: true
89+
# download dll files
90+
wget https://github.com/0chain/zboxcli/files/11840033/windows.dll.s.zip
91+
unzip -o windows.dll.s.zip
92+
cp zbox zbox.exe
93+
zip zbox-windows.zip zbox.exe libgcc_s_seh-1.dll libstdc++-6.dll libwinpthread-1.dll
10694
10795
- name: 'Upload Artifact'
10896
uses: actions/upload-artifact@v2
10997
with:
110-
name: zbox-windows
111-
path: zbox
98+
name: zbox-windows.zip
99+
path: zbox-windows.zip
112100
retention-days: 5
113101

102+
- name: cleanup workspace
103+
run: |
104+
rm -Recurse ${{github.workspace}}\*
105+
shell: powershell
106+
114107
build-macos:
115108
name: Build-macos
116109
runs-on: macos-runner
@@ -124,37 +117,16 @@ jobs:
124117
- name: Checkout
125118
uses: actions/checkout@v2
126119

127-
- name: Set GITHUB_ENV
128-
run: |
129-
echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
130-
131-
if [[ "${{github.base_ref}}" == "master" || "${{github.ref}}" == "refs/heads/master" ]]; then
132-
echo "TAG=v0.0.0-master" >> $GITHUB_ENV
133-
elif [[ "${{github.base_ref}}" == "dev" || "${{github.ref}}" == "refs/heads/dev" ]]; then
134-
echo "TAG=v0.0.0-dev" >> $GITHUB_ENV
135-
elif [[ "${{github.base_ref}}" == "staging" || "${{github.ref}}" == "refs/heads/staging" ]]; then
136-
echo "TAG=v0.0.0-dev" >> $GITHUB_ENV
137-
else
138-
echo "TAG=$(echo ${GITHUB_REF#refs/tags/})" >> $GITHUB_ENV
139-
fi
140-
141120
- name: Install
142121
run: make install
143-
- name: Zip release
144-
run: tar -czvf zbox-macos.tar.gz ./zbox
145-
146-
- name: Upload binaries to release
147-
uses: svenstaro/upload-release-action@v2
148-
with:
149-
repo_token: ${{ secrets.GITHUB_TOKEN }}
150-
file: zbox-macos.tar.gz
151-
tag: ${{ env.TAG }}
152-
overwrite: true
153-
file_glob: true
154122

155123
- name: 'Upload Artifact'
156124
uses: actions/upload-artifact@v2
157125
with:
158126
name: zbox-macos
159127
path: zbox
160128
retention-days: 5
129+
130+
- name: cleanup workspace
131+
run: |
132+
rm -rf ./*

.github/workflows/gosdk.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,32 @@ on:
88
workflow_dispatch:
99
inputs:
1010
gosdk:
11-
description: 'The version/branch of 0Chain GoSDK'
12-
required: true
13-
base:
14-
description: the base branch to which PR needs to be raised
11+
description: 'The 0Chain GoSDK version or branch'
1512
required: true
1613

1714
jobs:
1815
create-pr:
19-
runs-on: [arc-runner]
16+
runs-on: [self-hosted, build]
2017
steps:
2118
- name: Setup go 1.20
2219
uses: actions/setup-go@v2
2320
with:
2421
go-version: '1.20'
2522

2623
- name: Checkout
27-
uses: actions/checkout@v4
28-
with:
29-
ref: ${{ github.event.inputs.base }}
24+
uses: actions/checkout@v1
3025

3126
- name: Upgrade 0Chain GoSDK
3227
run: |
3328
echo "BRANCH=$(echo ${{github.event.inputs.gosdk}} | sed 's/\//-/g')" >> $GITHUB_ENV
34-
29+
3530
go get github.com/0chain/gosdk@${{github.event.inputs.gosdk}}
3631
go mod tidy
3732
3833
- name: Create Pull Request
3934
uses: peter-evans/create-pull-request@v3
4035
with:
41-
base: ${{ github.event.inputs.base }}
36+
base: staging
4237
token: ${{ secrets.GOSDK }}
4338
commit-message: upgrade GoSDK to ${{ github.event.inputs.gosdk }}
4439
branch: gosdk-upgrade-${{ env.BRANCH }}
@@ -48,5 +43,5 @@ jobs:
4843
0Chain GoSDK `${{ github.event.inputs.gosdk }}` is released.
4944
see full changelog on https://github.com/0chain/gosdk/releases/tag/${{ github.event.inputs.gosdk }}
5045
draft: false
51-
reviewers: guruhubb
46+
reviewers: cnlangzi
5247
labels: GoSDK

.github/workflows/build-zboxcli.yml renamed to .github/workflows/release-zboxcli.yml

Lines changed: 44 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: BUILD-ZBOXCLI
1+
name: RELEASE-ZBOXCLI
22

33
on:
44
workflow_dispatch:
@@ -18,7 +18,7 @@ env:
1818
jobs:
1919
build-linux:
2020
name: Build-linux
21-
runs-on: [self-hosted, build]
21+
runs-on: [self-hosted, ubuntu20]
2222

2323
steps:
2424
- name: Checkout code
@@ -96,11 +96,34 @@ jobs:
9696
build-windows:
9797
name: Build-windows
9898
runs-on: windows-runner
99+
defaults:
100+
run:
101+
shell: msys2 {0}
102+
strategy:
103+
matrix:
104+
sys: [ MINGW64 ]
99105
steps:
100-
- name: Setup go 1.20
101-
uses: actions/setup-go@v2
106+
- uses: msys2/setup-msys2@v2
102107
with:
103-
go-version: '1.20' # The Go version to download (if necessary) and use.
108+
msystem: ${{matrix.sys}}
109+
110+
- name: Install libraries
111+
run: |
112+
echo 'Y'| pacman -S base-devel git gcc make
113+
114+
- name: Install Clang and Go for MINGW64
115+
run: |
116+
echo 'y'| pacman -S mingw-w64-x86_64-clang mingw-w64-x86_64-go zip unzip
117+
118+
- name: Set environment variables
119+
run: |
120+
export GOROOT=/mingw64/lib/go
121+
export GOPATH=/mingw64
122+
export PATH=$PATH:$GOROOT/bin
123+
export PATH=$PATH:/usr/bin/7z
124+
125+
# use clang as a default compiler for CGO
126+
go env -w "CC=/mingw64/bin/clang.exe"
104127
105128
- name: Checkout
106129
uses: actions/checkout@v2
@@ -110,16 +133,24 @@ jobs:
110133

111134
- name: Zip release
112135
run: |
113-
copy zbox zbox.exe
114-
7z a zbox-windows.zip zbox.exe
136+
# download dll files
137+
wget https://github.com/0chain/zboxcli/files/11840033/windows.dll.s.zip
138+
unzip -o windows.dll.s.zip
139+
cp zbox zbox.exe
140+
zip zbox-windows.zip zbox.exe libgcc_s_seh-1.dll libstdc++-6.dll libwinpthread-1.dll
115141
116142
- name: 'Upload Artifact'
117143
uses: actions/upload-artifact@v2
118144
with:
119-
name: zbox-windows
120-
path: zbox
145+
name: zbox-windows.zip
146+
path: zbox-windows.zip
121147
retention-days: 5
122148

149+
- name: cleanup workspace
150+
run: |
151+
rm -Recurse ${{github.workspace}}\*
152+
shell: powershell
153+
123154
build-macos:
124155
name: Build-macos
125156
runs-on: macos-runner
@@ -145,3 +176,7 @@ jobs:
145176
name: zbox-macos
146177
path: zbox
147178
retention-days: 5
179+
180+
- name: cleanup workspace
181+
run: |
182+
rm -rf ./*

.github/workflows/system_tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ jobs:
4444
DEV8KC: ${{ secrets.DEV8KC }}
4545
DEV9KC: ${{ secrets.DEV9KC }}
4646
SUBGRAPH_API_URL: ${{ secrets.SUBGRAPH_API_URL }}
47-
TENDERLY_FORK_ID: ${{ secrets.TENDERLY_FORK_ID }}
47+
TENDERLY_SECRET: ${{ secrets.TENDERLY_SECRET }}
4848
DEVOPS_CHANNEL_WEBHOOK_URL: ${{ secrets.DEVOPS_CHANNEL_WEBHOOK_URL }}
4949
GRAPHNODE_SC: ${{ secrets.GRAPHNODE_SC }}
5050
GRAPHNODE_NETWORK: ${{ secrets.GRAPHNODE_NETWORK }}
51-
GRAPHNODE_ETHEREUM_NODE_URL: https://rpc.tenderly.co/fork/${{ secrets.TENDERLY_FORK_ID }}
5251
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
5352
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}

0 commit comments

Comments
 (0)