forked from CROSSINGTUD/CryptoAnalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.02 KB
/
main_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
name: CryptoAnalysis build
on: [push, pull_request]
jobs:
# Builds the project in windows, ubuntu and macos
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
name: Project build in ${{ matrix.os }}
steps:
- name: Checkout source code
uses: actions/checkout@v2
# Sets up Java version
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-package: jdk
java-version: '8'
# Sets up Maven version
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.6.3
# Restores Maven dependecies
- name: Restore local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run maven command
run: mvn clean verify