Remove unnecessary files
This commit is contained in:
parent
a6b1a10939
commit
2cbbdcdae1
3 changed files with 0 additions and 88 deletions
|
@ -1,30 +0,0 @@
|
|||
# Golang CircleCI 2.0 configuration file
|
||||
#
|
||||
# Check https://circleci.com/docs/2.0/language-go/ for more details
|
||||
version: 2
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: circleci/golang:latest
|
||||
|
||||
working_directory: /go/src/github.com/shu-go/vvin
|
||||
|
||||
environment:
|
||||
- GOPATH: /home/circleci/go
|
||||
|
||||
steps:
|
||||
- run: echo 'export PATH=${GOPATH}/bin/:${PATH}' >> $BASH_ENV
|
||||
- checkout
|
||||
- run: go get -u github.com/Songmu/goxz/cmd/goxz github.com/tcnksm/ghr
|
||||
- run: goxz -pv $(git describe --abbrev=0) -os "windows" -arch="386 amd64" -build-ldflags "-s -w -X main.Version=$(git describe --abbrev=0)" -include sample.bat
|
||||
- run: ghr -t $GITHUB_TOKEN -u shu-go --replace $(git describe --abbrev=0) goxz/
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
test-build:
|
||||
jobs:
|
||||
- build:
|
||||
filters:
|
||||
branches:
|
||||
only:
|
||||
- master
|
20
.github/workflows/release.yml
vendored
20
.github/workflows/release.yml
vendored
|
@ -1,20 +0,0 @@
|
|||
name: release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v[0-9]+.[0-9]+.[0-9]+"
|
||||
jobs:
|
||||
goreleaser:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v2
|
||||
- name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v2
|
||||
with:
|
||||
version: latest
|
||||
args: release --rm-dist
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@ -1,38 +0,0 @@
|
|||
project_name: vvin
|
||||
env:
|
||||
- GO111MODULE=on
|
||||
before:
|
||||
hooks:
|
||||
- go mod tidy
|
||||
builds:
|
||||
- binary: vvin
|
||||
flags:
|
||||
- -trimpath
|
||||
ldflags:
|
||||
- -s -w
|
||||
- -X main.Version={{.Version}}
|
||||
- -X main.Revision={{.ShortCommit}}
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- windows
|
||||
#- darwin
|
||||
#- linux
|
||||
goarch:
|
||||
- amd64
|
||||
- 386
|
||||
hooks:
|
||||
post: upx --lzma '{{ .Path }}'
|
||||
archives:
|
||||
- name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
|
||||
replacements:
|
||||
darwin: darwin
|
||||
linux: linux
|
||||
windows: windows
|
||||
386: 386
|
||||
amd64: amd64
|
||||
format_overrides:
|
||||
- goos: windows
|
||||
format: zip
|
||||
release:
|
||||
prerelease: auto
|
Loading…
Reference in a new issue