Skip to content

Commit

Permalink
chore(ci): add GOAMD64 support
Browse files Browse the repository at this point in the history
add GOAMD64 support

Signed-off-by: kovacs <mritd@linux.com>
  • Loading branch information
mritd committed Jul 11, 2022
1 parent 10b93c5 commit 887c681
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tasks:
label: build-{{.TASK}}
cmds:
- |
GOOS={{.GOOS}} GOARCH={{.GOARCH}} GOARM={{.GOARM}} GOMIPS={{.GOMIPS}} \
GOOS={{.GOOS}} GOARCH={{.GOARCH}} GOARM={{.GOARM}} GOMIPS={{.GOMIPS}} GOAMD64={{.GOAMD64}} \
go build -trimpath -o dist/bark-server_{{.TASK}} -ldflags \
"-w -s -X 'main.version={{.BUILD_VERSION}}' -X 'main.buildDate={{.BUILD_DATE}}' -X 'main.commitID={{.COMMIT_ID}}'"
linux_386:
Expand All @@ -39,6 +39,15 @@ tasks:
GOOS: linux,
GOARCH: amd64
}
linux_amd64_v2:
cmds:
- task: build-tpl
vars: {
TASK: "{{.TASK}}",
GOOS: linux,
GOARCH: amd64,
GOAMD64: v2
}
linux_amd64_v3:
cmds:
- task: build-tpl
Expand All @@ -48,6 +57,15 @@ tasks:
GOARCH: amd64,
GOAMD64: v3
}
linux_amd64_v4:
cmds:
- task: build-tpl
vars: {
TASK: "{{.TASK}}",
GOOS: linux,
GOARCH: amd64,
GOAMD64: v4
}
linux_armv5:
cmds:
- task: build-tpl
Expand Down Expand Up @@ -142,6 +160,15 @@ tasks:
GOOS: windows,
GOARCH: amd64
}
windows_amd64_v2.exe:
cmds:
- task: build-tpl
vars: {
TASK: "{{.TASK}}",
GOOS: windows,
GOARCH: amd64,
GOAMD64: v2
}
windows_amd64_v3.exe:
cmds:
- task: build-tpl
Expand All @@ -151,6 +178,15 @@ tasks:
GOARCH: amd64,
GOAMD64: v3
}
windows_amd64_v4.exe:
cmds:
- task: build-tpl
vars: {
TASK: "{{.TASK}}",
GOOS: windows,
GOARCH: amd64,
GOAMD64: v4
}
docker:
cmds:
- docker build -t finab/bark-server:{{.BUILD_VERSION}} -f deploy/Dockerfile .
Expand All @@ -170,7 +206,9 @@ tasks:
- task: copy-resource
- task: linux_386
- task: linux_amd64
- task: linux_amd64_v2
- task: linux_amd64_v3
- task: linux_amd64_v4
- task: linux_armv5
- task: linux_armv6
- task: linux_armv7
Expand All @@ -182,7 +220,9 @@ tasks:
- task: linux_mips64le
- task: windows_386.exe
- task: windows_amd64.exe
- task: windows_amd64_v2.exe
- task: windows_amd64_v3.exe
- task: windows_amd64_v4.exe
release:
cmds:
- task: default
Expand Down

0 comments on commit 887c681

Please sign in to comment.