Waterfall/.github/workflows/flamecord-build.yml

40 lines
1009 B
YAML
Raw Normal View History

name: Flamecord Maven Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [8, 11, 16]
steps:
- uses: actions/checkout@v2
- name: Setup JAVA ${{ matrix.java }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
architecture: x64
2021-05-02 23:46:11 +02:00
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build Flamecord
run: |
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
scripts/build.sh --jar
- name: Upload Flamecord
uses: actions/upload-artifact@v2
with:
name: Flamecord-JDK${{ matrix.java }}
2021-05-02 23:46:11 +02:00
path: Travertine-Proxy/bootstrap/target/Travertine.jar