github CI workflow
This commit is contained in:
parent
22e5ab34a9
commit
2dcaebb8f3
3 changed files with 51 additions and 26 deletions
51
.github/workflows/ci.yml
vendored
Normal file
51
.github/workflows/ci.yml
vendored
Normal file
|
@ -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
|
24
.github/workflows/maven.yml
vendored
24
.github/workflows/maven.yml
vendored
|
@ -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
|
|
|
@ -34,13 +34,11 @@
|
||||||
<url>https://github.com/vaci</url>
|
<url>https://github.com/vaci</url>
|
||||||
</developer>
|
</developer>
|
||||||
</developers>
|
</developers>
|
||||||
<properties>
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<maven.compiler.source>14</maven.compiler.source>
|
<maven.compiler.source>14</maven.compiler.source>
|
||||||
<maven.compiler.target>14</maven.compiler.target>
|
<maven.compiler.target>14</maven.compiler.target>
|
||||||
</properties>
|
</properties>
|
||||||
</properties>
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
|
|
Loading…
Reference in a new issue