2021-07-10 02:06:51 +02:00
|
|
|
# This workflow will perform a compilation test on
|
|
|
|
# each push to the branch master to check its correct
|
|
|
|
# compilation and will deliver an artifact to check
|
|
|
|
# if the change is working properly.
|
2021-05-03 05:32:11 +02:00
|
|
|
name: FlameCord Maven Build
|
2021-05-02 18:34:23 +02:00
|
|
|
|
2021-07-10 02:06:51 +02:00
|
|
|
on: [push]
|
2021-05-02 18:34:23 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
2021-05-08 17:46:44 +02:00
|
|
|
# The corresponding tests are performed in the versions
|
|
|
|
# marked as Long Term Support by Oracle and in its
|
|
|
|
# latest version up to the moment.
|
2021-05-02 18:34:23 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-03-08 15:52:18 +01:00
|
|
|
java: [8, 17]
|
2021-05-02 18:34:23 +02:00
|
|
|
|
|
|
|
steps:
|
2021-05-08 17:46:44 +02:00
|
|
|
- name: Checkout Repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2021-05-02 18:34:23 +02:00
|
|
|
- name: Setup JAVA ${{ matrix.java }}
|
2021-11-30 20:05:09 +01:00
|
|
|
uses: actions/setup-java@v2
|
2021-05-02 18:34:23 +02:00
|
|
|
with:
|
|
|
|
java-version: ${{ matrix.java }}
|
|
|
|
distribution: 'adopt'
|
|
|
|
architecture: x64
|
|
|
|
|
2021-05-08 17:46:44 +02:00
|
|
|
# The corresponding dependencies are stored in the cache to speed up the test.
|
|
|
|
- name: Cache Maven Packages
|
2021-11-30 20:05:09 +01:00
|
|
|
uses: actions/cache@v2
|
2021-05-02 23:46:11 +02:00
|
|
|
with:
|
|
|
|
path: ~/.m2
|
|
|
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
|
|
|
restore-keys: ${{ runner.os }}-m2
|
|
|
|
|
2021-05-08 17:46:44 +02:00
|
|
|
- name: Build FlameCord
|
2021-05-02 18:34:23 +02:00
|
|
|
run: |
|
|
|
|
git config --global user.email "you@example.com"
|
|
|
|
git config --global user.name "Your Name"
|
|
|
|
scripts/build.sh --jar
|