Skip to content

Commit

Permalink
build also on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m authored Jun 17, 2024
1 parent ad6e24c commit 1c7c4c3
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/build-and-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build:
runs-on: ubuntu-20.04
runs-on: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v2
Expand All @@ -18,16 +18,11 @@ jobs:
with:
java-version: '11'
distribution: 'adopt'
- name: Find available GPUs
run: lspci | grep -i vga
- name: Install openCL
- name: Install openCL on Ubuntu
if: matrix.platform_name == 'Ubuntu'
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
- name: Increase swapfile on Ubuntu
if: matrix.platform_name == 'Ubuntu'
run: |
sudo swapoff -a
sudo fallocate -l 15G /swapfile
Expand Down

0 comments on commit 1c7c4c3

Please sign in to comment.