Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/mononoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Check space
run: df -h
- name: Install Rust Stable
uses: actions-rs/toolchain@v1
with:
Expand All @@ -21,8 +23,29 @@ jobs:
profile: minimal
- name: Build dependencies
run: python3 build/fbcode_builder/getdeps.py build --only-deps --src-dir=. mononoke
- name: Check space
run: df -h
- name: Build mononoke
run: python3 build/fbcode_builder/getdeps.py build --no-deps --src-dir=. mononoke
continue-on-error: true
- name: Check space
run: df -h
- name: clean stuff
run: sudo rm -rf "/usr/local/share/boost"
- name: Check space
run: df -h
- name: clean stuff
run: sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Check space
run: df -h
- name: clean stuff
run: sudo apt-get clean
- name: Check space
run: df -h
- name: Build mononoke
run: python3 build/fbcode_builder/getdeps.py build --no-deps --src-dir=. mononoke
- name: Check space
run: df -h
- name: Copy artifacts
run: python3 build/fbcode_builder/getdeps.py fixup-dyn-deps --src-dir=. mononoke _artifacts/linux
- uses: actions/upload-artifact@master
Expand Down
6 changes: 6 additions & 0 deletions build/fbcode_builder/getdeps/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -958,12 +958,18 @@ def run_cargo(self, install_dirs, operation, args=None):
self.add_openssl_to_env(env, install_dirs)
# Enable using nightly features with stable compiler
env["RUSTC_BOOTSTRAP"] = "1"
env["FUSE_SYS_DELEGATE_LINKING"] = "1"
env["GRPCIO_SYS_DELEGATE_LINKING"] = "1"
env["GRPCIO_SYS_USE_PKG_CONFIG"] = "0"
env["LIBZ_SYS_STATIC"] = "1"
env["LZ4_SYS_DELEGATE_LINKING"] = "1"
env["LIBCURL_NO_PKG_CONFIG"] = "1"
cmd = [
"cargo",
operation,
"--workspace",
"-j%s" % self.build_opts.num_jobs,
"-v",
] + args
self._run_cmd(cmd, cwd=self.workspace_dir(), env=env)

Expand Down