POCL only for Linux. #30
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: Build master | ||
|
Check failure on line 1 in .github/workflows/build.yml
|
||
| 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 | ||