|
| 1 | +# .goreleaser.yml |
| 2 | +project_name: openAWS |
| 3 | +env: |
| 4 | + - GO111MODULE=on |
| 5 | +before: |
| 6 | + hooks: |
| 7 | + - go mod tidy |
| 8 | +builds: |
| 9 | + # You can have multiple builds defined as a yaml list |
| 10 | + - |
| 11 | + # ID of the build. |
| 12 | + # Defaults to the project name. |
| 13 | + #id: "my-build" |
| 14 | + |
| 15 | + # Path to project's (sub)directory containing Go code. |
| 16 | + # This is the working directory for the Go build command(s). |
| 17 | + # Default is `.`. |
| 18 | + #dir: go |
| 19 | + |
| 20 | + # Path to main.go file or main package. |
| 21 | + # Notice: when used with `gomod.proxy`, this must be a package. |
| 22 | + # |
| 23 | + # Default is `.`. |
| 24 | + #main: ./cmd/my-app |
| 25 | + |
| 26 | + # Binary name. |
| 27 | + # Can be a path (e.g. `bin/app`) to wrap the binary in a directory. |
| 28 | + # Default is the name of the project directory. |
| 29 | + #binary: program |
| 30 | + |
| 31 | + # Custom flags templates. |
| 32 | + # Default is empty. |
| 33 | + #flags: |
| 34 | + # - -tags=dev |
| 35 | + # - -v |
| 36 | + |
| 37 | + # Custom asmflags templates. |
| 38 | + # Default is empty. |
| 39 | + #asmflags: |
| 40 | + # - -D mysymbol |
| 41 | + # - all=-trimpath={{.Env.GOPATH}} |
| 42 | + |
| 43 | + # Custom gcflags templates. |
| 44 | + # Default is empty. |
| 45 | + #gcflags: |
| 46 | + # - all=-trimpath={{.Env.GOPATH}} |
| 47 | + # - ./dontoptimizeme=-N |
| 48 | + |
| 49 | + # Custom ldflags templates. |
| 50 | + # Default is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser`. |
| 51 | + ldflags: |
| 52 | + - -s -w |
| 53 | + - -X github.com/hacker65536/openAWS/cmd.Version={{.Version}} |
| 54 | + - -X github.com/hacker65536/openAWS/cmd.GitCommit={{.ShortCommit}} |
| 55 | + env: |
| 56 | + - CGO_ENABLED=0 |
| 57 | + |
| 58 | + # GOARCH to build for. |
| 59 | + # For more info refer to: https://golang.org/doc/install/source#environment |
| 60 | + # Defaults are 386, amd64 and arm64. |
| 61 | + goarch: |
| 62 | + - amd64 |
| 63 | + - arm |
| 64 | + - arm64 |
| 65 | + |
| 66 | + |
| 67 | + # Optionally override the matrix generation and specify only the final list of targets. |
| 68 | + # Format is `{goos}_{goarch}` with optionally a suffix with `_{goarm}` or `_{gomips}`. |
| 69 | + # This overrides `goos`, `goarch`, `goarm`, `gomips` and `ignores`. |
| 70 | + targets: |
| 71 | + - linux_amd64 |
| 72 | + - darwin_arm64 |
| 73 | + - darwin_amd64 |
| 74 | + - linux_arm_6 |
| 75 | + |
| 76 | + |
| 77 | + # If true, skip the build. |
| 78 | + # Useful for library projects. |
| 79 | + # Default is false |
| 80 | + skip: false |
0 commit comments