diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4577078 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,51 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + env: + PKG_CONFIG_PATH: /home/runner/lib/pkgconfig + + steps: + - uses: actions/checkout@v2 + with: + token: ${{ secrets.ACTIONS_TOKEN }} + + - name: Install Cap'n Proto + run: | + export DEBIAN_FRONTEND=noninteractive + env + sudo apt-get install -y gcc-7 g++-7 + curl -O https://capnproto.org/capnproto-c++-0.8.0.tar.gz + tar zxf capnproto-c++-0.8.0.tar.gz + cd capnproto-c++-0.8.0 + ./configure --prefix=$HOME CC=gcc-7 CXX=g++-7 + make -j + make install + cd .. + + - name: Set up JDK 14 + uses: actions/setup-java@v1 + with: + java-version: 14 + + - name: Build with Maven + env: + LD_LIBRARY_PATH: /home/runner/lib + run: | + env + make CC=gcc-7 CXX=g++-7 + env PATH="${PATH}:/home/runner/bin" mvn -e -X compile + + - name: Run tests + env: + LD_LIBRARY_PATH: /home/runner/lib + run: | + env PATH="${PATH}:/home/runner/bin" + env PATH="${PATH}:/home/runner/bin" mvn -e -X test diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml deleted file mode 100644 index 438a645..0000000 --- a/.github/workflows/maven.yml +++ /dev/null @@ -1,24 +0,0 @@ -# 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, rpc ] - pull_request: - branches: [ master, rpc ] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up JDK 14 - uses: actions/setup-java@v1 - with: - java-version: 14 - - name: Build with Maven - run: mvn -B package --file runtime/pom.xml diff --git a/runtime-rpc/pom.xml b/runtime-rpc/pom.xml index 47068e2..20dabdf 100644 --- a/runtime-rpc/pom.xml +++ b/runtime-rpc/pom.xml @@ -35,11 +35,9 @@ - UTF-8 14 14 -