Skip to content

Commit 8f27489

Browse files
committed
add windows and mac binaries
1 parent df087e5 commit 8f27489

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/upload_assets.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
run: |
1919
export GO111MODULE=on
2020
make build
21+
for f in bin/*; do tar cvzf $f.tar.gz $f; rm $f; done
2122
cp README.md bin/
2223
- name: upload artifacts
2324
uses: actions/upload-artifact@master
@@ -40,4 +41,4 @@ jobs:
4041
env:
4142
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4243
with:
43-
args: './dist/*'
44+
args: './bin/*'

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22
.PHONY: build test inttest
33

44
build:
5-
go build -o bin/gcov2lcov .
5+
GOOS=linux GOARCH=amd64 go build -o bin/gcov2lcov-linux-amd64 .
6+
GOOS=windows GOARCH=amd64 go build -o bin/gcov2lcov-win-amd64 .
7+
GOOS=darwin GOARCH=amd64 go build -o bin/gcov2lcov-darwin-amd64 .
68

79
test:
810
go test ./... -coverprofile coverage.out
911
go tool cover -func coverage.out
1012

1113
inttest: build
12-
./bin/gcov2lcov -infile testdata/coverage.out -outfile coverage.lcov
14+
./bin/gcov2lcov-linux-amd64 -infile testdata/coverage.out -outfile coverage.lcov
1315
diff -y testdata/coverage_expected.lcov coverage.lcov
1416

17+
clean:
18+
rm -f bin/*
19+
20+

0 commit comments

Comments
 (0)