Skip to content

Commit

Permalink
No CGO in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pepa65 committed Jan 1, 2024
1 parent aa7c63b commit 11a1336
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
11 changes: 5 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ building:
stage: build
script:
- go get -u github.com/pepa65/becrypt
- GOOS=linux GOARCH=amd64 go build -ldflags="-s -w"
- strip becrypt
- GOOS=linux GOARCH=arm go build -ldflags="-s -w" -o becrypt_pi
- GOOS=freebsd GOARCH=amd64 go build -ldflags="-s -w" -o becrypt_bsd
- GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o becrypt_osx
- GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o becrypt.exe
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w"
- CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -ldflags="-s -w" -o becrypt_pi
- CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -ldflags="-s -w" -o becrypt_bsd
- CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o becrypt_osx
- CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" -o becrypt.exe
artifacts:
name: becrypt
paths:
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.PHONY: build
build: clean
CGO_ENABLED=0 go build -ldflags="-s -w" -o becrypt
strip becrypt

.PHONY: clean
clean:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# becrypt
**Generate and check bcrypt hashes from a CLI**

* Version: 1.3.23
* Version: 1.3.24
* License: [MIT](LICENSE)
* Repo: `github.com/pepa65/becrypt`
* Modified interface from `github.com/shoenig/bcrypt-tool`:
Expand All @@ -16,7 +16,7 @@

## Usage
```
becrypt v1.3.23 - Generate and check bcrypt hashes from a CLI
becrypt v1.3.24 - Generate and check bcrypt hashes from a CLI
Repo: github.com/pepa65/becrypt
Usage: becrypt OPTION
Options:
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

const (
version = "1.3.23"
version = "1.3.24"
pwMaxLen = 72
)

Expand Down

0 comments on commit 11a1336

Please sign in to comment.