build(deps): bump dessant/lock-threads from 08e671be8ac8944d0e132aa71d0ae8ccfb347675 to b1f967d833bc79b6c0eb34e72a811b07039418b1 #225
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
tags-ignore: | |
- v*-*-* | |
pull_request: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.18.x | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: Cache go module | |
uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Get dependencies and run test | |
run: | | |
go install | |
go test ./... | |
- name: gen go-bindata | |
if: startsWith(github.ref, 'refs/tags/') | |
run: | | |
curl --silent --location --output /usr/local/bin/go-bindata https://github.com/kevinburke/go-bindata/releases/download/v3.11.0/go-bindata-linux-amd64 | |
chmod 755 /usr/local/bin/go-bindata | |
go-bindata -o internal/bindata/geoip/geoip.go -pkg bingeoip assets/GeoLite2-City.mmdb assets/flags.json | |
- name: Build | |
if: startsWith(github.ref, 'refs/tags/') | |
env: | |
NAME: toshiki-proxypool | |
BINDIR: bin | |
run: make -j releases && make sha256sum | |
- name: Upload Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
files: bin/* | |
draft: true | |
prerelease: true | |
- uses: actions/[email protected] | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
name: build | |
path: bin |