-
Notifications
You must be signed in to change notification settings - Fork 33
38 lines (33 loc) · 924 Bytes
/
build.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
32
33
34
35
36
37
38
name: Build
on:
push:
branches-ignore:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Determine Core Repository
uses: frabert/replace-string-action@master
id: core-repository
with:
pattern: '(.*)-android'
string: "${{ github.repository }}"
replace-with: '$1-core-java'
- name: Checkout Core Repository
uses: actions/checkout@v3
with:
repository: ${{ steps.core-repository.outputs.replaced }}
ref: ${{ github.ref }}
path: geopackage-core-java
- name: set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Build & Install Core
run: mvn -f geopackage-core-java clean install -DskipTests
- name: Checkout Repository
uses: actions/checkout@v3
- name: Build with Gradle
run: ./gradlew build -x lint