This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (75 loc) · 2.26 KB
/
maven.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# 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: Compiler CI with Maven and MJTest
on:
push:
branches:
- master
# push events on releases branch
- 'releases/**'
- 'f/**'
- 'ci'
pull_request:
branches:
- master
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 10
- name: Set up JDK 14 for x64
uses: actions/setup-java@v2
with:
java-version: '14'
distribution: 'adopt'
architecture: x64
cache: maven
- name: Set up Python3 for x64
uses: actions/setup-python@v2
with:
python-version: '3.6.9' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Build with Maven
run: |
pwd
/home/runner/work/compiler-minijava/compiler-minijava/build
- name: Run Lexer Tests
run: |
pwd
./run_mjtests.sh lexer
- name: Run Parser Tests
run: |
pwd
./run_mjtests.sh syntax
- name: Run Ast Tests
run: |
pwd
./run_mjtests.sh ast
- name: Run Semantic Tests
run: |
pwd
./run_mjtests.sh semantic
- name: Run Transformation Tests
run: |
pwd
./run_mjtests.sh compile-firm
- name: Run Compile only Tests
run: |
pwd
./run_mjtests.sh compile-only
- name: Run Compile Tests
run: |
pwd
./run_mjtests.sh compile
- name: Copy Artifacts
run: |
pwd
mkdir /home/runner/work/compiler-minijava/compiler-minijava/staging && cp /home/runner/work/compiler-minijava/compiler-minijava/target/*.jar staging
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: Package
path: staging