ChestsPlusPlus/.github/workflows/maven.yml

55 lines
1.3 KiB
YAML
Raw Normal View History

2022-01-12 21:33:01 +01:00
# 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
2022-01-12 21:35:30 +01:00
working-directory: ./BuildTools
2022-01-12 21:33:01 +01:00
run: build-pre1.17.sh
2022-01-12 21:39:13 +01:00
shell: bash
2022-01-12 21:33:01 +01:00
- name: Set up JDK 16
uses: actions/setup-java@v2
with:
java-version: '16'
distribution: 'adopt'
cache: maven
- name: Run BuildTools 1.17
2022-01-12 21:35:30 +01:00
working-directory: ./BuildTools
2022-01-12 21:33:01 +01:00
run: build-1.17.sh
2022-01-12 21:39:13 +01:00
shell: bash
2022-01-12 21:33:01 +01:00
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Run BuildTools 1.18+
2022-01-12 21:35:30 +01:00
working-directory: ./BuildTools
2022-01-12 21:33:01 +01:00
run: build-1.18+.sh
2022-01-12 21:39:13 +01:00
shell: bash
2022-01-12 21:33:01 +01:00
- name: Build with Maven
run: mvn -B package --file pom.xml