Update build.yml #121
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |