forked from iverly/FlameCord
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.56 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# 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.
name: FlameCord Build (master)
on: [push]
jobs:
build:
runs-on: ubuntu-latest
# The corresponding tests are performed in the versions
# marked as Long Term Support by Oracle and in its
# latest version up to the moment.
strategy:
matrix:
java: [8, 11, 17]
steps:
# Checkout repository
- name: Checkout Repository
uses: actions/checkout@v3
# Setup a version of the Java JDK
- name: Setup JAVA ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
architecture: x64
# The corresponding dependencies are stored in the cache to speed up the test.
- name: Cache Maven Packages
uses: actions/cache@v2.1.7
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
# Start building FlameCord
- name: Build FlameCord
run: |
git config --global user.email "mctartaros@outlook.com"
git config --global user.name "Tartaros"
scripts/build.sh --jar
# An artifact is generated in a compressed file according to each JDK build version.
- name: Upload FlameCord
uses: actions/upload-artifact@v3
with:
name: FlameCord-JDK${{ matrix.java }}
path: FlameCord-Proxy/bootstrap/target/FlameCord.jar