Jiayu Liu | 6a61c4e | 2022-04-29 01:25:39 +0800 | [diff] [blame^] | 1 | name: 'Build Thrift Compiler and Libraries' |
| 2 | on: |
| 3 | push: |
| 4 | branches: [ '*' ] |
| 5 | pull_request: |
| 6 | branches: [ '*' ] |
| 7 | jobs: |
| 8 | # TODO windows and macos |
| 9 | build-thrift-compiler-ubuntu: |
| 10 | strategy: |
| 11 | matrix: |
| 12 | os: [ubuntu-18.04, ubuntu-20.04] |
| 13 | runs-on: ${{ matrix.os }} |
| 14 | steps: |
| 15 | - uses: actions/checkout@v3 |
| 16 | |
| 17 | - name: Install dependencies |
| 18 | run: | |
| 19 | # https://docs.github.com/en/actions/using-github-hosted-runners/customizing-github-hosted-runners |
| 20 | sudo apt-get update -yq |
| 21 | sudo apt-get install -y --no-install-recommends \ |
| 22 | automake \ |
| 23 | bison \ |
| 24 | flex \ |
| 25 | g++ \ |
| 26 | git \ |
| 27 | libboost-all-dev \ |
| 28 | libevent-dev \ |
| 29 | libssl-dev \ |
| 30 | libtool \ |
| 31 | make \ |
| 32 | pkg-config |
| 33 | |
| 34 | - name: Run bootstrap |
| 35 | run: ./bootstrap.sh |
| 36 | |
| 37 | - name: Run configure |
| 38 | run: ./configure --disable-debug --disable-tests --disable-libs |
| 39 | |
| 40 | - name: Run make |
| 41 | run: make -j$(nproc) |
| 42 | |
| 43 | - name: Run install |
| 44 | run: make install |
| 45 | |
| 46 | - name: Run thrift version |
| 47 | run: /usr/local/bin/thrift -version |