sapling/.github/workflows/mononoke-integration_mac.yml
David Tolnay 00e6c4f3e3 Update to Rust 1.49.0
Summary: Release notes: https://blog.rust-lang.org/2020/12/31/Rust-1.49.0.html

Reviewed By: jsgf

Differential Revision: D25866484

fbshipit-source-id: 25a584547df858f71e76ab0cc88e1adeaac070c7
2021-01-19 17:46:47 -08:00

131 lines
3.9 KiB
YAML

name: Mononoke Integration Tests Mac
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Check space
run: df -h
- name: Install Rust Stable
uses: actions-rs/toolchain@v1
with:
toolchain: 1.49.0
default: true
profile: minimal
- name: Install Python 2.7
uses: actions/setup-python@v2
with:
python-version: '2.7'
- name: Install curl-openssl
run: |
brew install curl-openssl
echo "PATH=\"/usr/local/opt/curl-openssl/bin:$PATH\"" >> $GITHUB_ENV
- name: Install system deps
run: >-
sudo python3 build/fbcode_builder/getdeps.py
--allow-system-packages
install-system-deps
--recursive
mononoke_integration
- name: Build eden_scm dependencies
run: >-
python3 build/fbcode_builder/getdeps.py build
--allow-system-packages
--scratch-path /tmp/build
--only-deps
--no-tests
--src-dir=.
eden_scm
- name: Build eden_scm
run: >-
python3 build/fbcode_builder/getdeps.py build
--allow-system-packages
--scratch-path /tmp/build
--no-deps
--no-tests
--src-dir=.
eden_scm
- name: Build eden_scm_lib_edenapi_tools
run: >-
python3 build/fbcode_builder/getdeps.py build
--allow-system-packages
--scratch-path /tmp/build
--no-tests
--src-dir=.
eden_scm_lib_edenapi_tools
- name: Build mononoke dependencies
run: >-
python3 build/fbcode_builder/getdeps.py build
--allow-system-packages
--scratch-path /tmp/build
--only-deps
--no-tests
--src-dir=.
mononoke
- name: Build mononoke
run: >-
python3 build/fbcode_builder/getdeps.py build
--allow-system-packages
--scratch-path /tmp/build
--no-deps
--no-tests
--src-dir=.
mononoke
- name: Install Python 3.7
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Check space
run: df -h
- name: Build mononoke_integration dependencies
# This is a way of getting all the dependencies of mononoke_integration
# which were not covered by the dependencies of the previous 3 projects.
# We have to do this unfortunately to avoid rebuilding the previous
# project as they have been built with "--src-dir=." option.
run: >-
for x in $(
sort
<(python3 build/fbcode_builder/getdeps.py list-deps mononoke_integration)
<(python3 build/fbcode_builder/getdeps.py list-deps mononoke)
<(python3 build/fbcode_builder/getdeps.py list-deps mononoke)
<(python3 build/fbcode_builder/getdeps.py list-deps eden_scm)
<(python3 build/fbcode_builder/getdeps.py list-deps eden_scm)
<(python3 build/fbcode_builder/getdeps.py list-deps eden_scm_lib_edenapi_tools)
<(python3 build/fbcode_builder/getdeps.py list-deps eden_scm_lib_edenapi_tools)
<(echo mononoke_integration)
| uniq -u
)
;do
python3 build/fbcode_builder/getdeps.py build
--allow-system-packages
--scratch-path /tmp/build
--no-tests
"$x"
;done
- name: Build mononoke_integration
run: >-
python3 build/fbcode_builder/getdeps.py build
--allow-system-packages
--scratch-path /tmp/build
--no-deps
--src-dir=.
mononoke_integration
- name: Test mononoke_integration
run: >-
python3 build/fbcode_builder/getdeps.py test
--allow-system-packages
--scratch-path /tmp/build
--src-dir=.
mononoke_integration
- name: Check space after running tests
run: df -h