-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 1012 Bytes
/
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
name: Build
on: push
jobs:
build:
name: Build
strategy:
fail-fast: false
matrix:
java: [ '11', '17', '21' ]
os: [ windows-latest, ubuntu-20.04, macOS-latest ]
runs-on: ${{ matrix.os }}
env:
MAVEN_OPTS: -Dhttp.keepAlive=false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ matrix.java }}
cache: 'maven'
- if: contains(matrix.os, 'ubuntu')
name: Install dependencies
run: |
sudo rm -vf /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update && sudo apt-get install -y --allow-downgrades libgd3/focal libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
sudo apt-get purge -y libmono* moby* mono* php* libgdiplus libpcre2-posix3 libzip4
sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install -y wine32
- run: ./mvnw clean verify -B -V -e -ntp