Skip to content

use macos 13 and do a couple of checks #9

use macos 13 and do a couple of checks

use macos 13 and do a couple of checks #9

Workflow file for this run

name: Build and Run
on:
push:
branches: [ carlos-ci ]
pull_request:
branches: [ carlos-ci ]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Install openCL on Ubuntu
if: runner.os == 'Linux'
run: sudo apt install ocl-icd-opencl-dev
- name: Check memory and swap (macOS)
if: runner.os == 'macOS'
run: |
echo "Checking RAM and Swap for macOS Runner"
vm_stat
sysctl vm.swapusage
- name: Check architecture (macOS)
if: runner.os == 'macOS'
run: |
uname -m
- name: Increase swapfile on Ubuntu
if: runner.os == 'Linux'
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