-
Notifications
You must be signed in to change notification settings - Fork 45
49 lines (39 loc) · 1.05 KB
/
tonka-java-7.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
39
40
41
42
43
44
45
46
47
48
49
name: maven CI
on:
push:
branches:
- master
- develop
- 'feat/**'
paths:
- 'tonka-bean/pom.xml'
- 'tonka-bean/src/**'
- '.github/workflows/tonka-java-7.yml'
pull_request:
branches:
- master
- develop
- 'feat/**'
paths:
- 'tonka-bean/pom.xml'
- 'tonka-bean/src/**'
- '.github/workflows/tonka-java-7.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: ${{ github.event.repository.name }}
uses: actions/checkout@v4
- name: Prepare pom.xml
working-directory: ./tonka-bean
run: bash patch-jdk7.sh
- name: Pull legacy maven container
run: docker pull maven:3.6.1-jdk-7-slim
- name: Build tonka bean in container
working-directory: ./tonka-bean
run: docker run --rm --name tonka-java-7 -v "$(pwd)":/app -w /app maven:3.6.1-jdk-7-slim mvn clean package
- name: Archive generated JAR file
uses: actions/upload-artifact@v4
with:
name: tonka-bean-java-7
path: tonka-bean/target/*.jar