Skip to content

Commit 8a23f22

Browse files
committed
Remove goreleaser
1 parent 3937a45 commit 8a23f22

File tree

2 files changed

+41
-55
lines changed

2 files changed

+41
-55
lines changed

.circleci/config.yml

Lines changed: 41 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,43 @@ jobs:
2020
path: coverage.html
2121
destination: coverage
2222

23+
build_go:
24+
resource_class: large
25+
docker:
26+
- image: cimg/go:1.20.2
27+
steps:
28+
- checkout
29+
- attach_workspace:
30+
at: .
31+
- run: go get -v -t -d ./...
32+
- run: |
33+
set -u
34+
version=${CIRCLE_TAG:-}
35+
for cmd in << pipeline.parameters.cmds >>; do
36+
GOOS=linux GOARCH=amd64 go build -o ./release/${cmd}_${version}_linux_amd64 ./cmd/${cmd}
37+
GOOS=linux GOARCH=arm64 go build -o ./release/${cmd}_${version}_linux_arm64 ./cmd/${cmd}
38+
GOOS=linux GOARCH=arm go build -o ./release/${cmd}_${version}_linux_arm ./cmd/${cmd}
39+
GOOS=darwin GOARCH=amd64 go build -o ./release/${cmd}_${version}_darwin_amd64 ./cmd/${cmd}
40+
GOOS=darwin GOARCH=arm64 go build -o ./release/${cmd}_${version}_darwin_arm64 ./cmd/${cmd}
41+
GOOS=windows GOARCH=amd64 go build -o ./release/${cmd}_${version}_windows_amd64.exe ./cmd/${cmd}
42+
done
43+
- persist_to_workspace:
44+
root: .
45+
paths:
46+
- release/*
47+
48+
publish_gh:
49+
resource_class: small
50+
docker:
51+
- image: cimg/go:1.20.2
52+
steps:
53+
- attach_workspace:
54+
at: .
55+
- run: |
56+
set -u
57+
go install github.com/tcnksm/[email protected]
58+
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete -generatenotes ${CIRCLE_TAG} ./release
59+
2360
build_docker:
2461
resource_class: small
2562
docker:
@@ -51,22 +88,18 @@ jobs:
5188
docker push robocupssl/${cmd}:${TAG}
5289
done
5390
54-
release:
55-
docker:
56-
- image: cimg/go:1.18
57-
steps:
58-
- checkout
59-
- run: curl -sfL https://goreleaser.com/static/run | bash
60-
6191
workflows:
6292
version: 2
6393
build:
6494
jobs:
6595
- test_go
6696
release:
6797
jobs:
68-
- release:
98+
- build_go:
99+
filters: { branches: { ignore: /.*/ }, tags: { only: /^v.*/ } }
100+
- publish_gh:
69101
context: github
102+
requires: [ build_go ]
70103
filters: { branches: { ignore: /.*/ }, tags: { only: /^v.*/ } }
71104
docker:
72105
jobs:

.goreleaser.yaml

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)