sapling/.github/workflows/mononoke_linux.yml
Lukasz Piatkowski 44c4ca8597 pass --allow-system-packages to getdeps.py build of Mononoke (#28)
Summary:
Using system packages speeds up the build process

Pull Request resolved: https://github.com/facebookexperimental/eden/pull/28

Reviewed By: StanislavGlebik

Differential Revision: D22579916

Pulled By: lukaspiatkowski

fbshipit-source-id: 7315dc898143d44e2be29a1fa9c15554c5775b35
2020-07-17 00:36:06 -07:00

60 lines
1.9 KiB
YAML

name: Mononoke Linux
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Check space
run: df -h
- name: Clean space as per https://github.com/actions/virtual-environments/issues/709
run: sudo rm -rf "/usr/local/share/boost" && sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Check space
run: df -h
- name: Install Rust Stable
uses: actions-rs/toolchain@v1
with:
toolchain: 1.44.0
default: true
profile: minimal
- name: Install system deps
run: sudo python3 build/fbcode_builder/getdeps.py --allow-system-packages install-system-deps --recursive mononoke
- name: Build dependencies
run: python3 build/fbcode_builder/getdeps.py build --allow-system-packages --only-deps --src-dir=. mononoke
- name: Build mononoke
run: python3 build/fbcode_builder/getdeps.py build --allow-system-packages --no-deps --src-dir=. mononoke
- name: Check space
run: df -h
- name: Test mononoke
run: python3 build/fbcode_builder/getdeps.py test --allow-system-packages --src-dir=. mononoke
- name: Check space
run: df -h
- name: Install Rust Beta
uses: actions-rs/toolchain@v1
with:
toolchain: beta
default: true
profile: minimal
- name: Test mononoke with beta toolchain
run: python3 build/fbcode_builder/getdeps.py test --allow-system-packages --src-dir=. mononoke
continue-on-error: true
- name: Install Rust Nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
default: true
profile: minimal
- name: Test mononoke with nightly toolchain
run: python3 build/fbcode_builder/getdeps.py test --allow-system-packages --src-dir=. mononoke
continue-on-error: true
- name: Check space
run: df -h