Skip to content

Commit 7869f7e

Browse files
authored
[github_release] Add builder (#2918)
1 parent 5c4b640 commit 7869f7e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

G/github_release/build_tarballs.jl

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using BinaryBuilder
2+
3+
name = "github_release"
4+
version = v"0.10.0"
5+
6+
# Collection of sources required to build github_release
7+
sources = [
8+
ArchiveSource("https://github.com/github-release/github-release/archive/refs/tags/v$(version).zip",
9+
"369fc1ccdf9e0250b1974cd1089c71f994e12f29d9524205a16d1a2c29364396"),
10+
]
11+
12+
# Bash recipe for building across all platforms
13+
script = raw"""
14+
cd $WORKSPACE/srcdir/github-release*
15+
mkdir -p ${bindir}
16+
go mod init github-release
17+
go mod tidy
18+
go mod vendor
19+
go build -o ${bindir}
20+
"""
21+
22+
# These are the platforms we will build for by default, unless further
23+
# platforms are passed in on the command line
24+
platforms = supported_platforms()
25+
26+
# The products that we will ensure are always built
27+
products = [
28+
ExecutableProduct("github-release", :github_release),
29+
]
30+
31+
# Dependencies that must be installed before this package can be built
32+
dependencies = Dependency[
33+
]
34+
35+
# Build the tarballs.
36+
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; compilers=[:c, :go])

0 commit comments

Comments
 (0)