2021-09-03 14:53:02 +00:00
|
|
|
name: Maven CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
2021-10-23 02:34:14 +00:00
|
|
|
build:
|
2021-09-03 14:53:02 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-03-31 22:09:31 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-java@v3
|
2021-09-03 14:53:02 +00:00
|
|
|
with:
|
2021-10-23 02:34:14 +00:00
|
|
|
distribution: 'temurin'
|
2022-11-04 22:10:41 +00:00
|
|
|
java-version: 17
|
2021-09-03 14:53:02 +00:00
|
|
|
|
|
|
|
- name: Cache maven packages to speed up build
|
2023-03-31 22:09:31 +00:00
|
|
|
uses: actions/cache@v3
|
2021-09-03 14:53:02 +00:00
|
|
|
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
|
|
|
|
|
2023-03-31 22:09:31 +00:00
|
|
|
- uses: actions/upload-artifact@v3
|
2021-09-03 14:53:02 +00:00
|
|
|
with:
|
|
|
|
name: Weapons
|
|
|
|
path: target/Weapons.jar
|