Skip to content

Commit

Permalink
Add workflow for building Java 7 tonka-bean
Browse files Browse the repository at this point in the history
  • Loading branch information
qtc-de committed Jan 23, 2025
1 parent 4f77c1b commit 03a6bec
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/tonka-java-7.yml
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

0 comments on commit 03a6bec

Please sign in to comment.