github.com/lbryio/lbcd@v0.22.119/.github/workflows/full-sync-part-2.yml (about) 1 name: Full Sync From 814k 2 3 on: 4 workflow_dispatch: 5 inputs: 6 note: 7 description: 'Note' 8 required: false 9 default: '' 10 11 jobs: 12 build: 13 name: Go CI 14 runs-on: self-hosted 15 strategy: 16 matrix: 17 go: [1.19] 18 steps: 19 - run: | 20 echo "Note ${{ github.event.inputs.note }}!" 21 - name: Setup Go 22 uses: actions/setup-go@v2 23 with: 24 go-version: ${{ matrix.go }} 25 - name: Checkout source 26 uses: actions/checkout@v2 27 - name: Build lbcd 28 run: go build . 29 - name: Create datadir 30 run: echo "TEMP_DATA_DIR=$(mktemp -d)" >> $GITHUB_ENV 31 - name: Copy initial data 32 run: cp -r /home/lbry/lbcd_814k/* ${{env.TEMP_DATA_DIR}} 33 - name: Run lbcd 34 run: ./lbcd --datadir=${{env.TEMP_DATA_DIR}}/data --logdir=${{env.TEMP_DATA_DIR}}/logs --nolisten --norpc 35 - name: Remove datadir 36 if: always() 37 run: rm -rf ${{env.TEMP_DATA_DIR}}