Skip to content

chore: attempt check github action opencl #50

chore: attempt check github action opencl

chore: attempt check github action opencl #50

Workflow file for this run

name: Test linux base
on: [push, pull_request]
jobs:
build-and-testing:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: opencl ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y ocl-icd-opencl-dev opencl-headers
- name: install opencl macos
if: matrix.os == 'macos-latest'
run: |
brew update
brew install ocl-icd opencl-headers
- name: check opencl
run: |
ls /usr/include/CL || ls /usr/local/include/CL
ls /usr/lib | grep libOpenCL || ls /usr/local/lib | grep libOpenCL
- name: verify enola test
run: |
chmod +x ./test/run_test
ls -l ./test/run_test
- name: build and test
run: |
./test/run_test
env:
TEST_ENV_VAR: "enola_test_env"