2021-09-03 10:49:14 -04:00
|
|
|
name: Maven CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
2021-10-22 22:26:55 -04:00
|
|
|
build:
|
2021-09-03 10:49:14 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-10-22 22:26:55 -04:00
|
|
|
- uses: actions/setup-java@v2
|
2021-09-03 10:49:14 -04:00
|
|
|
with:
|
2021-10-22 22:26:55 -04:00
|
|
|
distribution: 'temurin'
|
2022-05-19 18:44:22 -04:00
|
|
|
java-version: 8
|
2021-09-03 10:49:14 -04:00
|
|
|
|
|
|
|
- name: Cache maven packages to speed up build
|
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ~/.m2
|
|
|
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
|
|
|
restore-keys: ${{ runner.os }}-m2
|
|
|
|
|
|
|
|
- name: Build with Maven
|
|
|
|
run: mvn -B package --file pom.xml
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: Extras
|
|
|
|
path: target/Extras.jar
|