Skip to content

Commit cb30bfa

Browse files
committed
Use Github actions for cross os builds
1 parent 43e59ed commit cb30bfa

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: dnsjava CI
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
matrix:
11+
os: [ ubuntu-16.04, ubuntu-latest, windows-latest ]
12+
java: [ '1.8', '11' ]
13+
arch: [ 'x86', 'x64' ]
14+
exclude:
15+
- os: ubuntu-16.04
16+
arch: x86
17+
- os: ubuntu-latest
18+
arch: x86
19+
20+
name: Java ${{ matrix.java }}/${{ matrix.arch }}/${{ matrix.os }}
21+
22+
steps:
23+
- uses: actions/checkout@v1
24+
25+
- name: Cache Maven dependencies
26+
uses: actions/cache@v1
27+
with:
28+
path: ~/.m2
29+
key: m2
30+
31+
- name: Set up JDK ${{ matrix.java }}
32+
uses: actions/setup-java@v1
33+
with:
34+
java-version: ${{ matrix.java }}
35+
architecture: ${{ matrix.arch }}
36+
37+
- name: Build with Maven
38+
run: mvn test jacoco:report -B -"Dgpg.skip"

0 commit comments

Comments
 (0)