-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow for building Java 7 tonka-bean
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
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 | ||
working-directory: ./tonka-bean | ||
with: | ||
name: tonka-bean-java-7 | ||
path: target/*.jar |