# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ubuntu-18.04

    steps:
    - uses: actions/checkout@v2
    - name: Set up JDK 1.8
      uses: actions/setup-java@v1
      with:
        java-version: 1.8
    - name: Install thrift 0.13.0
      run: |
        sudo apt-get update -y
        sudo apt-get install automake bison flex g++ git libboost-all-dev libevent-dev libtool make pkg-config libssl1.0-dev
        wget https://archive.apache.org/dist/thrift/0.13.0/thrift-0.13.0.tar.gz
        tar xfz thrift-0.13.0.tar.gz
        cd thrift-0.13.0 && ./configure --with-java --without-csharp --without-erlang --without-cpp --without-c_glib --without-python --without-php --without-ruby --without-go && sudo make install
    - name: Build with Maven
      run: mvn -B package --file pom.xml

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ubuntu-18.04

    steps:
    - uses: actions/checkout@v2
    - name: Set up JDK 1.8
      uses: actions/setup-java@v1
      with:
        java-version: 1.8
    - name: Install thrift 0.13.0
      run: |
        sudo apt-get update -y
        sudo apt-get install automake bison flex g++ git libboost-all-dev libevent-dev libtool make pkg-config libssl1.0-dev
        wget https://archive.apache.org/dist/thrift/0.13.0/thrift-0.13.0.tar.gz
        tar xfz thrift-0.13.0.tar.gz
        cd thrift-0.13.0 && sed -i 's/google/\/\/google/g' lib/java/build.gradle && ./configure --with-java --without-csharp --without-erlang --without-cpp --without-c_glib --without-python --without-php --without-ruby --without-go && sudo make install
    - name: Build with Maven
      run: mvn -B package --file pom.xml

Update ci thrift version to 0.13.0, comment google gradle repo
Update ci thrift version to 0.13.0, comment google gradle repo
