-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This command is used for keep container with blocks for blockfetcher updated. Close #3578 Signed-off-by: Ekaterina Pavlova <[email protected]> README: add archival notice (#520) People are likely to find this repo and we better have some directions for them. Signed-off-by: Roman Khimov <[email protected]> Signed-off-by: Ekaterina Pavlova <[email protected]>
- Loading branch information
1 parent
e1d5ac8
commit 01a4878
Showing
4 changed files
with
462 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Build neo-go Binary and Run Dump Put Job | ||
|
||
on: | ||
schedule: | ||
- cron: "0 */3 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_and_run: | ||
name: Build and Run neo-go db dump-bin-put | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
network: | ||
- { name: "MainNet", cid: "EPGuD26wYgQJbmDdVBoYoNZiMKHwFMJT3A5WqPjdUHxH", rpc: "https://rpc10.n3.nspcc.ru:10331" } | ||
- { name: "TestNet", cid: "testnet-cid", rpc: "https://rpc.t5.n3.nspcc.ru:20331" } | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.23' | ||
|
||
- name: Install dependencies | ||
run: sudo apt-get install -y build-essential | ||
|
||
- name: Build CLI | ||
run: | | ||
git clone https://github.com/nspcc-dev/neo-go.git | ||
cd neo-go | ||
make build | ||
cp ./bin/neo-go ../bin/neo-go # Copy the binary to a bin directory for later use | ||
- name: Create wallet JSON file | ||
run: | | ||
echo "${{ secrets.WALLET_JSON_CONTENT }}" > ./wallet.json | ||
- name: Create wallet-config.yml | ||
run: | | ||
echo "Path: \"$PWD/wallet.json\"" > ./wallet-config.yml | ||
echo "Password: \"$WALLET_PASSWORD\"" >> ./wallet-config.yml | ||
- name: Run neo-go db dump-bin-put for ${{ matrix.network.name }} | ||
run: | | ||
echo "Running neo-go db dump-bin-put on network: ${{ matrix.network.name }} with CID: ${{ matrix.network.cid }} and RPC: ${{ matrix.network.rpc }}" | ||
./bin/neo-go db dump-bin-put \ | ||
--cid ${{ matrix.network.cid }} \ | ||
--wallet-config ./wallet-config.yml \ | ||
--block-attribute "block" \ | ||
--index-attribute "index" \ | ||
--rpc-endpoint ${{ matrix.network.rpc }} \ | ||
-rn st1.t5.fs.neo.org:8080 | ||
env: | ||
WALLET_PASSWORD: ${{ secrets.WALLET_PASSWORD }} |
Oops, something went wrong.