-
Notifications
You must be signed in to change notification settings - Fork 19
32 lines (29 loc) · 1.04 KB
/
maven.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Java CI
on:
push:
pull_request:
branches:
- master
jobs:
test:
name: Test on Java ${{ matrix.java_version }} and OS ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
java_version: ['11', '17', '21']
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/[email protected]
with:
java-version: ${{ matrix.java_version }}
- name: Main build using Felix
run: ./mvnw clean install -B -Pfelix -Pjava8
- name: Main build using Equinox
run: ./mvnw clean install -B -Pequinox -Pjava8
- name: Build Android App
if: matrix.java_version == '11' && matrix.os == 'ubuntu-latest'
run: |
cp atomos.examples/atomos.examples.index/target/org.apache.felix.atomos.examples.index-*.jar atomos.examples/atomos.examples.android/app/libs
atomos.examples/atomos.examples.android/gradlew -b atomos.examples/atomos.examples.android/build.gradle build