File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 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
4041 env :
4142 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4243 with :
43- args : ' ./dist /*'
44+ args : ' ./bin /*'
Original file line number Diff line number Diff line change 22.PHONY : build test inttest
33
44build :
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
79test :
810 go test ./... -coverprofile coverage.out
911 go tool cover -func coverage.out
1012
1113inttest : 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+
You can’t perform that action at this time.
0 commit comments