chore: attempt check github action opencl #50
This file contains hidden or 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: 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" |