Skip to content

limit the heap size that maven can use #4

limit the heap size that maven can use

limit the heap size that maven can use #4

Workflow file for this run

name: Build and Run
on:
push:
branches: [ carlos-ci ]
pull_request:
branches: [ carlos-ci ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Find available GPUs
run: lspci | grep -i vga
- name: Install openCL
run: sudo apt install ocl-icd-opencl-dev
- name: Check installation
run: dpkg -L ocl-icd-opencl-dev
- name: Build with Maven
run: MAVEN_OPTS="-Xmx1024m -Xms512m" mvn clean install
- name: Run Java class
run: java -cp target/classes com.example.YourMainClass