Skip to content

Update workflow

Update workflow #1

Workflow file for this run

name: maven CI
on:
push:
pull_request:
branches:
- master
- develop
- 'feat/**'
paths:
- 'src/**'
- 'pom.xml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: ${{ github.event.repository.name }}
uses: actions/checkout@v4
- name: Set up JDK 1.8
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Archive generated JAR file
uses: actions/upload-artifact@v4
with:
name: rmg-compiled-jars
path: target/rmg-*