mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-08 18:02:05 +03:00
Summary: The future is now. Reviewed By: xavierd Differential Revision: D33714537 fbshipit-source-id: 8d282bbe7391c4b72b70dab54a5c252060fba457
28 lines
793 B
Python
28 lines
793 B
Python
#!/usr/bin/env python
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
|
from shell_quoting import ShellQuoted
|
|
|
|
|
|
def fbcode_builder_spec(builder):
|
|
# This API should change rarely, so build the latest tag instead of master.
|
|
builder.add_option(
|
|
"facebook/zstd:git_hash",
|
|
ShellQuoted("$(git describe --abbrev=0 --tags origin/master)"),
|
|
)
|
|
return {
|
|
"steps": [
|
|
builder.github_project_workdir("facebook/zstd", "."),
|
|
builder.step(
|
|
"Build and install zstd",
|
|
[
|
|
builder.make_and_install(
|
|
make_vars={
|
|
"PREFIX": builder.option("prefix"),
|
|
}
|
|
)
|
|
],
|
|
),
|
|
],
|
|
}
|