Skip to content

try JDK21

try JDK21 #366

name: Terrier Maven CI
on: [push]
jobs:
build:
strategy:
matrix:
java: [11, 21]
os: ['ubuntu-latest', 'macOs-latest', 'windows-latest']
architecture: ['x64']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
architecture: ${{ matrix.architecture }}
distribution: 'zulu'
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Run on Windows
if: matrix.os == 'windows-latest'
run: |
bin\terrier.bat
- name: Run on Linux/MacOs
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macOs-latest'
run: |
bin/terrier