github.com/lbryio/lbcd@v0.22.119/.github/workflows/full-sync-part-1.yml (about)

     1  name: Full Sync From 0
     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: Run lbcd
    32          run: ./lbcd --datadir=${{env.TEMP_DATA_DIR}}/data --logdir=${{env.TEMP_DATA_DIR}}/logs --nolisten --norpc
    33        - name: Remove datadir
    34          if: always()
    35          run: rm -rf ${{env.TEMP_DATA_DIR}}