Skip to content

Commit

Permalink
setup example github action - [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiayu Liu authored and jimexist committed Apr 28, 2022
1 parent 684ee07 commit 09428f7
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 09428f7

Please sign in to comment.