mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-13 03:42:24 +03:00
Reviewed By: simpkins Differential Revision: D12990230 fbshipit-source-id: 58d82299a8fe6aed75115008fe5dfb0f46d847c6
27 lines
824 B
Python
27 lines
824 B
Python
#!/usr/bin/env python
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
from __future__ import absolute_import
|
|
from __future__ import division
|
|
from __future__ import print_function
|
|
from __future__ import unicode_literals
|
|
|
|
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'),
|
|
})
|
|
]),
|
|
],
|
|
}
|