Skip to content

Commit 7261f0b

Browse files
committed
Added ldflags in the build step
1 parent e4e52b0 commit 7261f0b

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: make build
2323
- name: List binaries
2424
run: ls -l ./dist
25-
- name: Upload the Rodeo binaries
25+
- name: Upload binaries
2626
uses: svenstaro/upload-release-action@v2
2727
with:
2828
repo_token: ${{ secrets.GITHUB_TOKEN }}

Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
BINARY_NAME=netmap
2-
VERSION=v0.1.2
2+
VERSION=v0.1.3
33
DIST_DIR=dist
44

55
build:
66
mkdir -p ${DIST_DIR}
7-
GOOS=darwin GOARCH=amd64 go build -v -o ${DIST_DIR}/${BINARY_NAME}-darwin-amd64-${VERSION} .
8-
GOOS=linux GOARCH=amd64 go build -v -o ${DIST_DIR}/${BINARY_NAME}-linux-amd64-${VERSION} .
9-
GOOS=linux GOARCH=arm64 go build -v -o ${DIST_DIR}/${BINARY_NAME}-linux-arm64-${VERSION} .
10-
GOOS=windows GOARCH=amd64 go build -v -o ${DIST_DIR}/${BINARY_NAME}-windows-amd64-${VERSION}.exe .
7+
GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -v -o ${DIST_DIR}/${BINARY_NAME}-darwin-amd64-${VERSION} .
8+
GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -v -o ${DIST_DIR}/${BINARY_NAME}-darwin-arm64-${VERSION} .
9+
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -v -o ${DIST_DIR}/${BINARY_NAME}-linux-amd64-${VERSION} .
10+
GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -v -o ${DIST_DIR}/${BINARY_NAME}-linux-arm64-${VERSION} .
11+
GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -v -o ${DIST_DIR}/${BINARY_NAME}-windows-amd64-${VERSION}.exe .
1112

1213
clean:
1314
go clean

cmd/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ var versionCmd = &cobra.Command{
1515
Short: "Print the version number of Netmap",
1616
Long: `All software has versions. This is Netmap's`,
1717
Run: func(cmd *cobra.Command, args []string) {
18-
fmt.Println("netmap v0.1.2 -- HEAD")
18+
fmt.Println("netmap v0.1.3 -- HEAD")
1919
},
2020
}

0 commit comments

Comments
 (0)