From 1a65a6a19dcf75fe645b5d7af777d4b57cfd00e1 Mon Sep 17 00:00:00 2001 From: Roy Lee Date: Tue, 27 Jul 2021 10:35:32 -0700 Subject: [PATCH] [CI] Add full-sync workflow --- .github/workflows/full-sync.yml | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/full-sync.yml diff --git a/.github/workflows/full-sync.yml b/.github/workflows/full-sync.yml new file mode 100644 index 00000000..267063ea --- /dev/null +++ b/.github/workflows/full-sync.yml @@ -0,0 +1,36 @@ +name: Full Sync + +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: Set up Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go }} + - name: Check out source + uses: actions/checkout@v2 + - name: Install Linters + 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 . + - name: Create Datadir + run: echo "TEMP_DIR=$(mktemp -d)" >> $GITHUB_ENV + - name: Full-Sync + run: ./chain --datadir ${{env.TEMP_DIR}} --connect 127.0.0.1 --rpclisten 0.0.0.0:9427 + - name: Remove Datadir + run: rm -rf --datadir ${{env.TEMP_DIR}}