add config for GitHub Actions

This commit is contained in:
Lukasz Piatkowski 2020-01-21 13:35:22 +01:00
parent 14a5f470cc
commit 8e3ecba192

285
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,285 @@
# This file was @generated by getdeps.py
name: 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: Fetch boost
run: python build/fbcode_builder/getdeps.py fetch --no-tests boost
- name: Fetch ninja
run: python build/fbcode_builder/getdeps.py fetch --no-tests ninja
- name: Fetch cmake
run: python build/fbcode_builder/getdeps.py fetch --no-tests cmake
- name: Fetch fmt
run: python build/fbcode_builder/getdeps.py fetch --no-tests fmt
- name: Fetch googletest
run: python build/fbcode_builder/getdeps.py fetch --no-tests googletest
- name: Fetch python-six
run: python build/fbcode_builder/getdeps.py fetch --no-tests python-six
- name: Fetch zstd
run: python build/fbcode_builder/getdeps.py fetch --no-tests zstd
- name: Fetch double-conversion
run: python build/fbcode_builder/getdeps.py fetch --no-tests double-conversion
- name: Fetch gflags
run: python build/fbcode_builder/getdeps.py fetch --no-tests gflags
- name: Fetch glog
run: python build/fbcode_builder/getdeps.py fetch --no-tests glog
- name: Fetch libevent
run: python build/fbcode_builder/getdeps.py fetch --no-tests libevent
- name: Fetch snappy
run: python build/fbcode_builder/getdeps.py fetch --no-tests snappy
- name: Fetch folly
run: python build/fbcode_builder/getdeps.py fetch --no-tests folly
- name: Fetch rsocket-cpp
run: python build/fbcode_builder/getdeps.py fetch --no-tests rsocket-cpp
- name: Fetch autoconf
run: python build/fbcode_builder/getdeps.py fetch --no-tests autoconf
- name: Fetch automake
run: python build/fbcode_builder/getdeps.py fetch --no-tests automake
- name: Fetch libtool
run: python build/fbcode_builder/getdeps.py fetch --no-tests libtool
- name: Fetch bison
run: python build/fbcode_builder/getdeps.py fetch --no-tests bison
- name: Fetch libsodium
run: python build/fbcode_builder/getdeps.py fetch --no-tests libsodium
- name: Fetch fizz
run: python build/fbcode_builder/getdeps.py fetch --no-tests fizz
- name: Fetch flex
run: python build/fbcode_builder/getdeps.py fetch --no-tests flex
- name: Fetch wangle
run: python build/fbcode_builder/getdeps.py fetch --no-tests wangle
- name: Fetch fbthrift
run: python build/fbcode_builder/getdeps.py fetch --no-tests fbthrift
- name: Fetch rust-shed
run: python build/fbcode_builder/getdeps.py fetch --no-tests rust-shed
- name: Build boost
run: python build/fbcode_builder/getdeps.py build --no-tests boost
- name: Build ninja
run: python build/fbcode_builder/getdeps.py build --no-tests ninja
- name: Build cmake
run: python build/fbcode_builder/getdeps.py build --no-tests cmake
- name: Build fmt
run: python build/fbcode_builder/getdeps.py build --no-tests fmt
- name: Build googletest
run: python build/fbcode_builder/getdeps.py build --no-tests googletest
- name: Build python-six
run: python build/fbcode_builder/getdeps.py build --no-tests python-six
- name: Build zstd
run: python build/fbcode_builder/getdeps.py build --no-tests zstd
- name: Build double-conversion
run: python build/fbcode_builder/getdeps.py build --no-tests double-conversion
- name: Build gflags
run: python build/fbcode_builder/getdeps.py build --no-tests gflags
- name: Build glog
run: python build/fbcode_builder/getdeps.py build --no-tests glog
- name: Build libevent
run: python build/fbcode_builder/getdeps.py build --no-tests libevent
- name: Build snappy
run: python build/fbcode_builder/getdeps.py build --no-tests snappy
- name: Build folly
run: python build/fbcode_builder/getdeps.py build --no-tests folly
- name: Build rsocket-cpp
run: python build/fbcode_builder/getdeps.py build --no-tests rsocket-cpp
- name: Build autoconf
run: python build/fbcode_builder/getdeps.py build --no-tests autoconf
- name: Build automake
run: python build/fbcode_builder/getdeps.py build --no-tests automake
- name: Build libtool
run: python build/fbcode_builder/getdeps.py build --no-tests libtool
- name: Build bison
run: python build/fbcode_builder/getdeps.py build --no-tests bison
- name: Build libsodium
run: python build/fbcode_builder/getdeps.py build --no-tests libsodium
- name: Build fizz
run: python build/fbcode_builder/getdeps.py build --no-tests fizz
- name: Build flex
run: python build/fbcode_builder/getdeps.py build --no-tests flex
- name: Build wangle
run: python build/fbcode_builder/getdeps.py build --no-tests wangle
- name: Build fbthrift
run: python build/fbcode_builder/getdeps.py build --no-tests fbthrift
- name: Build rust-shed
run: python build/fbcode_builder/getdeps.py build --no-tests rust-shed
- name: Build mononoke
run: python build/fbcode_builder/getdeps.py build --src-dir=. mononoke
- name: Copy artifacts
run: python 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: python 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: python 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: python 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: Fetch boost
run: python build/fbcode_builder/getdeps.py fetch --no-tests boost
- name: Fetch openssl
run: python build/fbcode_builder/getdeps.py fetch --no-tests openssl
- name: Fetch ninja
run: python build/fbcode_builder/getdeps.py fetch --no-tests ninja
- name: Fetch cmake
run: python build/fbcode_builder/getdeps.py fetch --no-tests cmake
- name: Fetch fmt
run: python build/fbcode_builder/getdeps.py fetch --no-tests fmt
- name: Fetch googletest
run: python build/fbcode_builder/getdeps.py fetch --no-tests googletest
- name: Fetch python-six
run: python build/fbcode_builder/getdeps.py fetch --no-tests python-six
- name: Fetch zstd
run: python build/fbcode_builder/getdeps.py fetch --no-tests zstd
- name: Fetch double-conversion
run: python build/fbcode_builder/getdeps.py fetch --no-tests double-conversion
- name: Fetch gflags
run: python build/fbcode_builder/getdeps.py fetch --no-tests gflags
- name: Fetch glog
run: python build/fbcode_builder/getdeps.py fetch --no-tests glog
- name: Fetch libevent
run: python build/fbcode_builder/getdeps.py fetch --no-tests libevent
- name: Fetch snappy
run: python build/fbcode_builder/getdeps.py fetch --no-tests snappy
- name: Fetch folly
run: python build/fbcode_builder/getdeps.py fetch --no-tests folly
- name: Fetch rsocket-cpp
run: python build/fbcode_builder/getdeps.py fetch --no-tests rsocket-cpp
- name: Fetch autoconf
run: python build/fbcode_builder/getdeps.py fetch --no-tests autoconf
- name: Fetch automake
run: python build/fbcode_builder/getdeps.py fetch --no-tests automake
- name: Fetch libtool
run: python build/fbcode_builder/getdeps.py fetch --no-tests libtool
- name: Fetch bison
run: python build/fbcode_builder/getdeps.py fetch --no-tests bison
- name: Fetch libsodium
run: python build/fbcode_builder/getdeps.py fetch --no-tests libsodium
- name: Fetch fizz
run: python build/fbcode_builder/getdeps.py fetch --no-tests fizz
- name: Fetch flex
run: python build/fbcode_builder/getdeps.py fetch --no-tests flex
- name: Fetch wangle
run: python build/fbcode_builder/getdeps.py fetch --no-tests wangle
- name: Fetch fbthrift
run: python build/fbcode_builder/getdeps.py fetch --no-tests fbthrift
- name: Fetch rust-shed
run: python build/fbcode_builder/getdeps.py fetch --no-tests rust-shed
- name: Build boost
run: python build/fbcode_builder/getdeps.py build --no-tests boost
- name: Build openssl
run: python build/fbcode_builder/getdeps.py build --no-tests openssl
- name: Build ninja
run: python build/fbcode_builder/getdeps.py build --no-tests ninja
- name: Build cmake
run: python build/fbcode_builder/getdeps.py build --no-tests cmake
- name: Build fmt
run: python build/fbcode_builder/getdeps.py build --no-tests fmt
- name: Build googletest
run: python build/fbcode_builder/getdeps.py build --no-tests googletest
- name: Build python-six
run: python build/fbcode_builder/getdeps.py build --no-tests python-six
- name: Build zstd
run: python build/fbcode_builder/getdeps.py build --no-tests zstd
- name: Build double-conversion
run: python build/fbcode_builder/getdeps.py build --no-tests double-conversion
- name: Build gflags
run: python build/fbcode_builder/getdeps.py build --no-tests gflags
- name: Build glog
run: python build/fbcode_builder/getdeps.py build --no-tests glog
- name: Build libevent
run: python build/fbcode_builder/getdeps.py build --no-tests libevent
- name: Build snappy
run: python build/fbcode_builder/getdeps.py build --no-tests snappy
- name: Build folly
run: python build/fbcode_builder/getdeps.py build --no-tests folly
- name: Build rsocket-cpp
run: python build/fbcode_builder/getdeps.py build --no-tests rsocket-cpp
- name: Build autoconf
run: python build/fbcode_builder/getdeps.py build --no-tests autoconf
- name: Build automake
run: python build/fbcode_builder/getdeps.py build --no-tests automake
- name: Build libtool
run: python build/fbcode_builder/getdeps.py build --no-tests libtool
- name: Build bison
run: python build/fbcode_builder/getdeps.py build --no-tests bison
- name: Build libsodium
run: python build/fbcode_builder/getdeps.py build --no-tests libsodium
- name: Build fizz
run: python build/fbcode_builder/getdeps.py build --no-tests fizz
- name: Build flex
run: python build/fbcode_builder/getdeps.py build --no-tests flex
- name: Build wangle
run: python build/fbcode_builder/getdeps.py build --no-tests wangle
- name: Build fbthrift
run: python build/fbcode_builder/getdeps.py build --no-tests fbthrift
- name: Build rust-shed
run: python build/fbcode_builder/getdeps.py build --no-tests rust-shed
- name: Build mononoke
run: python build/fbcode_builder/getdeps.py build --src-dir=. mononoke
- name: Copy artifacts
run: python 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: python 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: python 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: python build/fbcode_builder/getdeps.py test --src-dir=. mononoke
continue-on-error: true