diff options
author | Jiayu Liu <Jimexist@users.noreply.github.com> | 2022-04-29 01:25:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 13:25:39 -0400 |
commit | 6a61c4ee992c6e4f0be4f065cfccf1757212f6de (patch) | |
tree | 7e7d924877306c94f92f8485d4786cb98daed160 /.github/workflows/build.yml | |
parent | 684ee0717472e1c084f4858f3faf650b6f17b451 (diff) | |
download | thrift-6a61c4ee992c6e4f0be4f065cfccf1757212f6de.tar.gz |
THRIFT-5564: create a basic github action (#2592)
Partially addresses THRIFT-5564
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r-- | .github/workflows/build.yml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..5ac71b71e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,47 @@ +name: 'Build Thrift Compiler and Libraries' +on: + push: + branches: [ '*' ] + pull_request: + branches: [ '*' ] +jobs: + # TODO windows and macos + build-thrift-compiler-ubuntu: + strategy: + matrix: + os: [ubuntu-18.04, ubuntu-20.04] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + + - name: Install dependencies + run: | + # https://docs.github.com/en/actions/using-github-hosted-runners/customizing-github-hosted-runners + sudo apt-get update -yq + sudo apt-get install -y --no-install-recommends \ + automake \ + bison \ + flex \ + g++ \ + git \ + libboost-all-dev \ + libevent-dev \ + libssl-dev \ + libtool \ + make \ + pkg-config + + - name: Run bootstrap + run: ./bootstrap.sh + + - name: Run configure + run: ./configure --disable-debug --disable-tests --disable-libs + + - name: Run make + run: make -j$(nproc) + + - name: Run install + run: make install + + - name: Run thrift version + run: /usr/local/bin/thrift -version |