Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable github actions for fbthrift #434

Closed
wants to merge 1 commit into from
Closed
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
115 changes: 115 additions & 0 deletions .github/workflows/getdeps_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# This file was @generated by getdeps.py

name: linux

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Fetch boost
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests boost
- name: Fetch ninja
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests ninja
- name: Fetch cmake
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests cmake
- name: Fetch fmt
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests fmt
- name: Fetch googletest
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests googletest
- name: Fetch python-six
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests python-six
- name: Fetch zstd
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests zstd
- name: Fetch double-conversion
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests double-conversion
- name: Fetch gflags
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests gflags
- name: Fetch glog
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests glog
- name: Fetch libevent
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libevent
- name: Fetch lz4
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests lz4
- name: Fetch snappy
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests snappy
- name: Fetch folly
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests folly
- name: Fetch autoconf
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests autoconf
- name: Fetch automake
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests automake
- name: Fetch libtool
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libtool
- name: Fetch bison
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests bison
- name: Fetch libsodium
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libsodium
- name: Fetch fizz
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests fizz
- name: Fetch flex
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests flex
- name: Fetch wangle
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests wangle
- name: Build boost
run: python3 build/fbcode_builder/getdeps.py build --no-tests boost
- name: Build ninja
run: python3 build/fbcode_builder/getdeps.py build --no-tests ninja
- name: Build cmake
run: python3 build/fbcode_builder/getdeps.py build --no-tests cmake
- name: Build fmt
run: python3 build/fbcode_builder/getdeps.py build --no-tests fmt
- name: Build googletest
run: python3 build/fbcode_builder/getdeps.py build --no-tests googletest
- name: Build python-six
run: python3 build/fbcode_builder/getdeps.py build --no-tests python-six
- name: Build zstd
run: python3 build/fbcode_builder/getdeps.py build --no-tests zstd
- name: Build double-conversion
run: python3 build/fbcode_builder/getdeps.py build --no-tests double-conversion
- name: Build gflags
run: python3 build/fbcode_builder/getdeps.py build --no-tests gflags
- name: Build glog
run: python3 build/fbcode_builder/getdeps.py build --no-tests glog
- name: Build libevent
run: python3 build/fbcode_builder/getdeps.py build --no-tests libevent
- name: Build lz4
run: python3 build/fbcode_builder/getdeps.py build --no-tests lz4
- name: Build snappy
run: python3 build/fbcode_builder/getdeps.py build --no-tests snappy
- name: Build folly
run: python3 build/fbcode_builder/getdeps.py build --no-tests folly
- name: Build autoconf
run: python3 build/fbcode_builder/getdeps.py build --no-tests autoconf
- name: Build automake
run: python3 build/fbcode_builder/getdeps.py build --no-tests automake
- name: Build libtool
run: python3 build/fbcode_builder/getdeps.py build --no-tests libtool
- name: Build bison
run: python3 build/fbcode_builder/getdeps.py build --no-tests bison
- name: Build libsodium
run: python3 build/fbcode_builder/getdeps.py build --no-tests libsodium
- name: Build fizz
run: python3 build/fbcode_builder/getdeps.py build --no-tests fizz
- name: Build flex
run: python3 build/fbcode_builder/getdeps.py build --no-tests flex
- name: Build wangle
run: python3 build/fbcode_builder/getdeps.py build --no-tests wangle
- name: Build fbthrift
run: python3 build/fbcode_builder/getdeps.py build --src-dir=. fbthrift --project-install-prefix fbthrift:/usr/local
- name: Copy artifacts
run: python3 build/fbcode_builder/getdeps.py fixup-dyn-deps --strip --src-dir=. fbthrift _artifacts/linux --project-install-prefix fbthrift:/usr/local --final-install-prefix /usr/local
- uses: actions/upload-artifact@master
with:
name: fbthrift
path: _artifacts
- name: Test fbthrift
run: python3 build/fbcode_builder/getdeps.py test --src-dir=. fbthrift --project-install-prefix fbthrift:/usr/local
119 changes: 119 additions & 0 deletions .github/workflows/getdeps_mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
# This file was @generated by getdeps.py

name: mac

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Fetch boost
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests boost
- name: Fetch openssl
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests openssl
- name: Fetch ninja
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests ninja
- name: Fetch cmake
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests cmake
- name: Fetch fmt
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests fmt
- name: Fetch googletest
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests googletest
- name: Fetch python-six
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests python-six
- name: Fetch zstd
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests zstd
- name: Fetch double-conversion
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests double-conversion
- name: Fetch gflags
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests gflags
- name: Fetch glog
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests glog
- name: Fetch libevent
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libevent
- name: Fetch lz4
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests lz4
- name: Fetch snappy
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests snappy
- name: Fetch folly
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests folly
- name: Fetch autoconf
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests autoconf
- name: Fetch automake
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests automake
- name: Fetch libtool
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libtool
- name: Fetch bison
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests bison
- name: Fetch libsodium
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests libsodium
- name: Fetch fizz
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests fizz
- name: Fetch flex
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests flex
- name: Fetch wangle
run: python3 build/fbcode_builder/getdeps.py fetch --no-tests wangle
- name: Build boost
run: python3 build/fbcode_builder/getdeps.py build --no-tests boost
- name: Build openssl
run: python3 build/fbcode_builder/getdeps.py build --no-tests openssl
- name: Build ninja
run: python3 build/fbcode_builder/getdeps.py build --no-tests ninja
- name: Build cmake
run: python3 build/fbcode_builder/getdeps.py build --no-tests cmake
- name: Build fmt
run: python3 build/fbcode_builder/getdeps.py build --no-tests fmt
- name: Build googletest
run: python3 build/fbcode_builder/getdeps.py build --no-tests googletest
- name: Build python-six
run: python3 build/fbcode_builder/getdeps.py build --no-tests python-six
- name: Build zstd
run: python3 build/fbcode_builder/getdeps.py build --no-tests zstd
- name: Build double-conversion
run: python3 build/fbcode_builder/getdeps.py build --no-tests double-conversion
- name: Build gflags
run: python3 build/fbcode_builder/getdeps.py build --no-tests gflags
- name: Build glog
run: python3 build/fbcode_builder/getdeps.py build --no-tests glog
- name: Build libevent
run: python3 build/fbcode_builder/getdeps.py build --no-tests libevent
- name: Build lz4
run: python3 build/fbcode_builder/getdeps.py build --no-tests lz4
- name: Build snappy
run: python3 build/fbcode_builder/getdeps.py build --no-tests snappy
- name: Build folly
run: python3 build/fbcode_builder/getdeps.py build --no-tests folly
- name: Build autoconf
run: python3 build/fbcode_builder/getdeps.py build --no-tests autoconf
- name: Build automake
run: python3 build/fbcode_builder/getdeps.py build --no-tests automake
- name: Build libtool
run: python3 build/fbcode_builder/getdeps.py build --no-tests libtool
- name: Build bison
run: python3 build/fbcode_builder/getdeps.py build --no-tests bison
- name: Build libsodium
run: python3 build/fbcode_builder/getdeps.py build --no-tests libsodium
- name: Build fizz
run: python3 build/fbcode_builder/getdeps.py build --no-tests fizz
- name: Build flex
run: python3 build/fbcode_builder/getdeps.py build --no-tests flex
- name: Build wangle
run: python3 build/fbcode_builder/getdeps.py build --no-tests wangle
- name: Build fbthrift
run: python3 build/fbcode_builder/getdeps.py build --src-dir=. fbthrift --project-install-prefix fbthrift:/usr/local
- name: Copy artifacts
run: python3 build/fbcode_builder/getdeps.py fixup-dyn-deps --src-dir=. fbthrift _artifacts/mac --project-install-prefix fbthrift:/usr/local --final-install-prefix /usr/local
- uses: actions/upload-artifact@master
with:
name: fbthrift
path: _artifacts
- name: Test fbthrift
run: python3 build/fbcode_builder/getdeps.py test --src-dir=. fbthrift --project-install-prefix fbthrift:/usr/local
120 changes: 120 additions & 0 deletions .github/workflows/getdeps_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
# This file was @generated by getdeps.py

name: windows

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: windows-2016
steps:
- uses: actions/checkout@v1
- name: Export boost environment
run: "echo BOOST_ROOT=%BOOST_ROOT_1_69_0% >> %GITHUB_ENV%"
shell: cmd
- name: Fix Git config
run: git config --system core.longpaths true
- name: Fetch bison
run: python build/fbcode_builder/getdeps.py fetch --no-tests bison
- name: Fetch flex
run: python build/fbcode_builder/getdeps.py fetch --no-tests flex
- name: Fetch libsodium
run: python build/fbcode_builder/getdeps.py fetch --no-tests libsodium
- 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 lz4
run: python build/fbcode_builder/getdeps.py fetch --no-tests lz4
- name: Fetch snappy
run: python build/fbcode_builder/getdeps.py fetch --no-tests snappy
- name: Fetch zlib
run: python build/fbcode_builder/getdeps.py fetch --no-tests zlib
- name: Fetch perl
run: python build/fbcode_builder/getdeps.py fetch --no-tests perl
- name: Fetch openssl
run: python build/fbcode_builder/getdeps.py fetch --no-tests openssl
- name: Fetch libevent
run: python build/fbcode_builder/getdeps.py fetch --no-tests libevent
- name: Fetch folly
run: python build/fbcode_builder/getdeps.py fetch --no-tests folly
- name: Fetch fizz
run: python build/fbcode_builder/getdeps.py fetch --no-tests fizz
- name: Fetch wangle
run: python build/fbcode_builder/getdeps.py fetch --no-tests wangle
- name: Build bison
run: python build/fbcode_builder/getdeps.py build --no-tests bison
- name: Build flex
run: python build/fbcode_builder/getdeps.py build --no-tests flex
- name: Build libsodium
run: python build/fbcode_builder/getdeps.py build --no-tests libsodium
- 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 lz4
run: python build/fbcode_builder/getdeps.py build --no-tests lz4
- name: Build snappy
run: python build/fbcode_builder/getdeps.py build --no-tests snappy
- name: Build zlib
run: python build/fbcode_builder/getdeps.py build --no-tests zlib
- name: Build perl
run: python build/fbcode_builder/getdeps.py build --no-tests perl
- name: Build openssl
run: python build/fbcode_builder/getdeps.py build --no-tests openssl
- name: Build libevent
run: python build/fbcode_builder/getdeps.py build --no-tests libevent
- name: Build folly
run: python build/fbcode_builder/getdeps.py build --no-tests folly
- name: Build fizz
run: python build/fbcode_builder/getdeps.py build --no-tests fizz
- 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 --src-dir=. fbthrift
- name: Copy artifacts
run: python build/fbcode_builder/getdeps.py fixup-dyn-deps --src-dir=. fbthrift _artifacts/windows --final-install-prefix /usr/local
- uses: actions/upload-artifact@master
with:
name: fbthrift
path: _artifacts
- name: Test fbthrift
run: python build/fbcode_builder/getdeps.py test --src-dir=. fbthrift