Skip to content

add guards for use-after-close JVM crashes (#82) #127

add guards for use-after-close JVM crashes (#82)

add guards for use-after-close JVM crashes (#82) #127

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.platform }}
strategy:
matrix:
java: [11, 17, 21]
platform: [ubuntu-20.04, macos-11, windows-2019]
steps:
- name: install libomp
run: brew install libomp
if: runner.os == 'macOS'
- uses: actions/checkout@v2
with:
lfs: true
- name: Checkout LFS objects
run: git lfs checkout
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache maven packages
uses: actions/cache@v2
env:
cache-name: cache-mvn
with:
path: ~/.m2
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Build with Maven
run: mvn -B compile --file pom.xml
- name: Run tests
run: mvn -B test --file pom.xml