mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
da172f992a
Summary: These were originally generated by getdeps, but since they have been manually modified they are no longer regeneratable via the getdeps tooling. Simplify and just call the getdeps build rather than replicating the discrete project fetches: they aren't required to break out separately it just looks nice in the CI output--they will be fetched on demand during the build anyway. Reviewed By: simpkins Differential Revision: D20660208 fbshipit-source-id: b6c63333e842d2bd1ba2fb574f8f082dcefef89e
88 lines
2.6 KiB
YAML
88 lines
2.6 KiB
YAML
name: Mononoke CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
linux:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Install Rust Stable
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
default: true
|
|
profile: minimal
|
|
- name: Build mononoke
|
|
run: python3 build/fbcode_builder/getdeps.py build --src-dir=. mononoke
|
|
- name: Copy artifacts
|
|
run: python3 build/fbcode_builder/getdeps.py fixup-dyn-deps --src-dir=. mononoke _artifacts/linux
|
|
- uses: actions/upload-artifact@master
|
|
with:
|
|
name: mononoke
|
|
path: _artifacts
|
|
- name: Test mononoke
|
|
run: python3 build/fbcode_builder/getdeps.py test --src-dir=. mononoke
|
|
- 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 --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 --src-dir=. mononoke
|
|
continue-on-error: true
|
|
mac:
|
|
runs-on: macOS-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Install Rust Stable
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
default: true
|
|
profile: minimal
|
|
- name: Build mononoke
|
|
run: python3 build/fbcode_builder/getdeps.py build --src-dir=. mononoke
|
|
- name: Copy artifacts
|
|
run: python3 build/fbcode_builder/getdeps.py fixup-dyn-deps --src-dir=. mononoke _artifacts/mac
|
|
- uses: actions/upload-artifact@master
|
|
with:
|
|
name: mononoke
|
|
path: _artifacts
|
|
- name: Test mononoke
|
|
run: python3 build/fbcode_builder/getdeps.py test --src-dir=. mononoke
|
|
- 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 --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 --src-dir=. mononoke
|
|
continue-on-error: true
|