try to increse memory in the swap #5
Workflow file for this run
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 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: Check available memory | |
run: | | |
df -h | |
- name: Increase swapfile | |
run: | | |
sudo swapoff -a | |
sudo fallocate -l 15G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo swapon --show | |
- name: Build with Maven | |
run: sudo mvn clean install | |
- name: Run Java class | |
run: java -cp target/classes com.example.YourMainClass |