-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (37 loc) · 1.33 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
# 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: Talk2Compiler
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
java: [ '11', '17' ]
os: [ ubuntu-20.04, macos-10.15, windows-2019 ]
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
cache: maven
- name: Build with Maven
run: mvn clean package
- name: Execute
run: mvn exec:exec
- name: Verify no graal_dumps after execute
run: java .github/workflows/CheckDirectory.java graal_dumps none
- name: Test and Dump
run: mvn -Pigv test
- name: Verify graal_dumps after test and dump
run: java .github/workflows/CheckDirectory.java graal_dumps dir move none
- name: Execute and Dump
run: mvn -Pigv exec:exec
- name: Verify graal_dumps after execute and dump
run: java .github/workflows/CheckDirectory.java graal_dumps dir