diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..57b5be3 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,23 @@ +name: Build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.17 + check-latest: true + + - name: Build + run: go build -v ./... diff --git a/README.md b/README.md index ff95ad0..a59a074 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ # LrcToSrt + +[![Build](https://github.com/Hami-Lemon/LrcToSrt/actions/workflows/go.yml/badge.svg?branch=master)](https://github.com/Hami-Lemon/LrcToSrt/actions/workflows/go.yml) + 用于将LRC歌词文件转换成SRT字幕文件 ## 功能