-
Notifications
You must be signed in to change notification settings - Fork 127
41 lines (41 loc) · 1.15 KB
/
mvn.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
---
name: mvn
on:
push:
branches:
- master
paths-ignore: ['paper/**', 'sandbox/**']
pull_request:
branches:
- master
paths-ignore: ['paper/**', 'sandbox/**']
concurrency:
group: mvn-${{ github.ref }}
cancel-in-progress: true
jobs:
mvn:
name: mvn
strategy:
matrix:
os: [ubuntu-20.04, windows-2022, macos-12]
java: [11, 20]
runs-on: ${{ matrix.os }}
env:
CONVERT_PATH: /tmp/antlr4-to-bnf-converter
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-jdk-${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-jdk-${{ matrix.java }}-maven-
- run: |
mkdir -p $CONVERT_PATH
wget --quiet http://public.yegor256.com/convert.zip -O /tmp/convert.zip
unzip -o -d $CONVERT_PATH /tmp/convert.zip
if: matrix.os == 'ubuntu-20.04'
- run: mvn clean install -Pqulice --errors --batch-mode