mirror of
https://github.com/LBRYFoundation/lbcd.git
synced 2025-08-23 17:47:24 +00:00
added full sync part 2
add sha add coreutils fix data folder added icu more icu
This commit is contained in:
parent
3c0e288e0f
commit
132b93713d
5 changed files with 99 additions and 13 deletions
52
.github/workflows/create-release.yml
vendored
Normal file
52
.github/workflows/create-release.yml
vendored
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
name: Create release
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
note:
|
||||||
|
description: 'Note'
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go: [1.16]
|
||||||
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: ${{ matrix.go }}
|
||||||
|
- name: Checkout source
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Build executables
|
||||||
|
env:
|
||||||
|
GO111MODULE: "on"
|
||||||
|
run: go build -trimpath -o artifacts/ --tags use_icu_normalization .
|
||||||
|
- name: Install coreutils for macOS
|
||||||
|
if: matrix.os == 'macos-latest'
|
||||||
|
run: brew install coreutils icu4c
|
||||||
|
- name: SHA256 sum
|
||||||
|
run: sha256sum -b artifacts/* > artifacts/chain.sha256
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: chain-${{ matrix.os }}
|
||||||
|
path: artifacts/*
|
||||||
|
|
||||||
|
|
||||||
|
# for releases see https://trstringer.com/github-actions-create-release-upload-artifacts/
|
||||||
|
|
||||||
|
# AWS S3 support:
|
||||||
|
# - name: Upload to Amazon S3
|
||||||
|
# uses: ItsKarma/aws-cli@v1.70.0
|
||||||
|
# with:
|
||||||
|
# args: s3 sync .release s3://my-bucket-name
|
||||||
|
# env:
|
||||||
|
# # Make sure to add the secrets in the repo settings page
|
||||||
|
# # AWS_REGION is set to us-east-1 by default
|
||||||
|
# AWS_ACCESS_KEY_ID: $
|
||||||
|
# AWS_SECRET_ACCESS_KEY: $
|
||||||
|
# AWS_REGION: us-east-1
|
34
.github/workflows/full-sync-part-1.yml
vendored
Normal file
34
.github/workflows/full-sync-part-1.yml
vendored
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
name: Full Sync From 0
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
note:
|
||||||
|
description: 'Note'
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Go CI
|
||||||
|
runs-on: self-hosted
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go: [1.16]
|
||||||
|
steps:
|
||||||
|
- run: |
|
||||||
|
echo "Note ${{ github.event.inputs.note }}!"
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: ${{ matrix.go }}
|
||||||
|
- name: Checkout source
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Build chain
|
||||||
|
run: go build --tags use_icu_normalization .
|
||||||
|
- name: Create datadir
|
||||||
|
run: echo "TEMP_DATA_DIR=$(mktemp -d)" >> $GITHUB_ENV
|
||||||
|
- name: Run chain
|
||||||
|
run: ./chain --datadir=${{env.TEMP_DATA_DIR}}/data --logdir=${{env.TEMP_DATA_DIR}}/logs --connect=127.0.0.1 --norpc
|
||||||
|
- name: Remove datadir
|
||||||
|
run: rm -rf ${{env.TEMP_DATA_DIR}}
|
|
@ -1,4 +1,4 @@
|
||||||
name: Full Sync
|
name: Full Sync From 814k
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
@ -22,15 +22,15 @@ jobs:
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go }}
|
go-version: ${{ matrix.go }}
|
||||||
- name: Check out source
|
- name: Checkout source
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install Linters
|
- name: Build chain
|
||||||
run: "curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.26.0"
|
|
||||||
- name: Build
|
|
||||||
run: go build --tags use_icu_normalization .
|
run: go build --tags use_icu_normalization .
|
||||||
- name: Create Datadir
|
- name: Create datadir
|
||||||
run: echo "TEMP_DIR=$(mktemp -d)" >> $GITHUB_ENV
|
run: echo "TEMP_DATA_DIR=$(mktemp -d)" >> $GITHUB_ENV
|
||||||
- name: Full-Sync
|
- name: Copy initial data
|
||||||
run: ./chain --datadir ${{env.TEMP_DIR}} --connect 127.0.0.1 --norpc
|
run: cp -r /home/lbry/chain_814k/* ${{env.TEMP_DATA_DIR}}
|
||||||
- name: Remove Datadir
|
- name: Run chain
|
||||||
run: rm -rf --datadir ${{env.TEMP_DIR}}
|
run: ./chain --datadir=${{env.TEMP_DATA_DIR}}/data --logdir=${{env.TEMP_DATA_DIR}}/logs --connect=127.0.0.1 --norpc
|
||||||
|
- name: Remove datadir
|
||||||
|
run: rm -rf ${{env.TEMP_DATA_DIR}}
|
|
@ -265,8 +265,8 @@ func BenchmarkClaimTrie_AppendBlock(b *testing.B) {
|
||||||
}
|
}
|
||||||
|
|
||||||
param.SetNetwork(wire.TestNet)
|
param.SetNetwork(wire.TestNet)
|
||||||
param.OriginalClaimExpirationTime = 1000000
|
param.ActiveParams.OriginalClaimExpirationTime = 1000000
|
||||||
param.ExtendedClaimExpirationTime = 1000000
|
param.ActiveParams.ExtendedClaimExpirationTime = 1000000
|
||||||
cfg.DataDir = b.TempDir()
|
cfg.DataDir = b.TempDir()
|
||||||
|
|
||||||
r := require.New(b)
|
r := require.New(b)
|
||||||
|
|
Loading…
Add table
Reference in a new issue