Skip to content

Commit 08e91ad

Browse files
author
Ranjan Dasgupta
committed
Build using github actions
new file: .github/workflows/main.yaml
1 parent 6f35dcb commit 08e91ad

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/main.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Workflow to build mqtt.paho.java library
2+
3+
name: Java CI
4+
5+
on:
6+
push:
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
10+
11+
workflow_dispatch:
12+
13+
jobs:
14+
test:
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
# os: [ubuntu-latest, macOS-latest, windows-latest]
19+
# java: [ 8.0.192, 8, 11.0.3, 17, 18-ea ]
20+
os: [ubuntu-latest]
21+
java: [ 11.0.3 ]
22+
fail-fast: false
23+
max-parallel: 4
24+
name: Test MQTT Paho Java on JDK ${{ matrix.java }}, ${{ matrix.os }}
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Set up JDK ${{ matrix.java }} ${{ matrix.os }}
28+
uses: actions/setup-java@v1
29+
with:
30+
java-version: ${{ matrix.java }}
31+
java-package: jdk # optional (jdk, jre, jdk+fx or jre+fx)
32+
- name: Package and test with Maven
33+
run: mvn package
34+

0 commit comments

Comments
 (0)