File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*"
7+
8+ permissions :
9+ contents : write
10+
11+ jobs :
12+ release :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ with :
17+ fetch-depth : 0
18+
19+ - uses : actions/setup-go@v5
20+ with :
21+ go-version-file : src/go.mod
22+
23+ - uses : goreleaser/goreleaser-action@v6
24+ with :
25+ version : " ~> v2"
26+ args : release --clean
27+ env :
28+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ project_name : opcodeoracle
2+
3+ before :
4+ hooks :
5+ - go mod tidy
6+
7+ builds :
8+ - id : opcodeoracle
9+ dir : src
10+ main : ./cmd/opcodeoracle
11+ binary : opcodeoracle
12+ ldflags :
13+ - -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}
14+ env :
15+ - CGO_ENABLED=0
16+ goos :
17+ - linux
18+ - darwin
19+ - windows
20+ goarch :
21+ - amd64
22+ - arm64
23+
24+ archives :
25+ - format : tar.gz
26+ name_template : " {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
27+ format_overrides :
28+ - goos : windows
29+ format : zip
30+
31+ checksum :
32+ name_template : checksums.txt
33+
34+ changelog :
35+ sort : asc
36+ filters :
37+ exclude :
38+ - " ^docs:"
39+ - " ^test:"
40+ - " ^ci:"
Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ const (
1818 ExitAnalysisError = 6
1919)
2020
21- // Version information
22- const Version = "0.1.0 "
21+ // Version information — set via ldflags at build time.
22+ var version = "dev "
2323
2424func main () {
2525 app := & cli.App {
2626 Name : "opcodeoracle" ,
2727 Usage : "MOS6502 Disassembler" ,
28- Version : Version ,
28+ Version : version ,
2929 Commands : []* cli.Command {
3030 newCommand (),
3131 infoCommand (),
You can’t perform that action at this time.
0 commit comments