mirror of
https://github.com/JamesPeters98/ChestsPlusPlus.git
synced 2024-11-14 22:56:27 +01:00
Create maven.yml
This commit is contained in:
parent
2dd3481c6a
commit
6687de1514
51
.github/workflows/maven.yml
vendored
Normal file
51
.github/workflows/maven.yml
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
||||
|
||||
name: Build ChestsPlusPlus
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up JDK 8
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '8'
|
||||
distribution: 'adopt'
|
||||
cache: maven
|
||||
- name: Run BuildTools Pre 1.17
|
||||
working-directory: /BuildTools
|
||||
run: build-pre1.17.sh
|
||||
|
||||
- name: Set up JDK 16
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '16'
|
||||
distribution: 'adopt'
|
||||
cache: maven
|
||||
- name: Run BuildTools 1.17
|
||||
working-directory: /BuildTools
|
||||
run: build-1.17.sh
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'adopt'
|
||||
cache: maven
|
||||
- name: Run BuildTools 1.18+
|
||||
working-directory: /BuildTools
|
||||
run: build-1.18+.sh
|
||||
|
||||
- name: Build with Maven
|
||||
run: mvn -B package --file pom.xml
|
Loading…
Reference in New Issue
Block a user