Skip to content

POCL only for Linux. #30

POCL only for Linux.

POCL only for Linux. #30

Workflow file for this run

name: Build master

Check failure on line 1 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

(Line: 27, Col: 11): Unexpected symbol: '"Linux"'. Located at position 14 within expression: runner.os == "Linux", (Line: 33, Col: 11): Unexpected symbol: '"Linux"'. Located at position 14 within expression: runner.os == "Linux"
on: [push, pull_request]
jobs:
build-and-test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Build
run: dotnet build -c Release
- name: Run tests on CPU
run: dotnet test
- name: Setup POCL and clinfo
if: runner.os == "Linux"
run: |
sudo apt-get update
sudo apt-get install -y pocl-opencl-icd clinfo
- name: Check OpenCL
if: runner.os == "Linux"
run: clinfo