ci: Update Go toolchain to 1.16
This commit is contained in:
parent
63438c6d36
commit
82141c408c
4 changed files with 124 additions and 2 deletions
|
@ -3,10 +3,10 @@ on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Go CI
|
name: Go CI
|
||||||
runs-on: ubuntu-latest
|
runs-on: self-hosted
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go: [1.14, 1.15]
|
go: [1.16]
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
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: Install coreutils, ICU for macOS
|
||||||
|
if: matrix.os == 'macos-latest'
|
||||||
|
run: brew install coreutils icu4c
|
||||||
|
- name: Build executables
|
||||||
|
env:
|
||||||
|
GO111MODULE: "on"
|
||||||
|
run: go build -trimpath -o artifacts/ --tags use_icu_normalization .
|
||||||
|
- name: SHA256 sum
|
||||||
|
run: sha256sum -b artifacts/* > artifacts/lbcd.sha256
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: lbcd-${{ 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 lbcd
|
||||||
|
run: go build --tags use_icu_normalization .
|
||||||
|
- name: Create datadir
|
||||||
|
run: echo "TEMP_DATA_DIR=$(mktemp -d)" >> $GITHUB_ENV
|
||||||
|
- name: Run lbcd
|
||||||
|
run: ./lbcd --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}}
|
36
.github/workflows/full-sync-part-2.yml
vendored
Normal file
36
.github/workflows/full-sync-part-2.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
name: Full Sync From 814k
|
||||||
|
|
||||||
|
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: Checkout source
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Build lbcd
|
||||||
|
run: go build --tags use_icu_normalization .
|
||||||
|
- name: Create datadir
|
||||||
|
run: echo "TEMP_DATA_DIR=$(mktemp -d)" >> $GITHUB_ENV
|
||||||
|
- name: Copy initial data
|
||||||
|
run: cp -r /home/lbry/lbcd_814k/* ${{env.TEMP_DATA_DIR}}
|
||||||
|
- name: Run lbcd
|
||||||
|
run: ./lbcd --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}}
|
Loading…
Add table
Reference in a new issue