Skip to content

Commit

Permalink
Add windows opencl ci
Browse files Browse the repository at this point in the history
  • Loading branch information
LLukas22 committed Jul 9, 2023
1 parent 7d6eee3 commit 84652f3
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,38 @@ jobs:
fail-fast: false
matrix:
# TODO Add windows opencl build
os: [ubuntu-latest]
os: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install clblast

- name: Install CLBlast on linux
if: matrix.os == 'ubuntu-latest'
run: sudo apt install libclblast-dev

- name: Install vcpkg on windows
if: matrix.os == 'windows-latest'
run: |
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
- name: Install OpenCL on windows
if: matrix.os == 'windows-latest'
run: |
./vcpkg/vcpkg install opencl:x64-windows
echo "D:\a\_work\1\s\vcpkg\packages\opencl_x64-windows" >> $OPENCL_PATH
shell: bash

- name: Install CLBlast on windows
if: matrix.os == 'windows-latest'
run: |
./vcpkg/vcpkg install clblast:x64-windows
echo "D:\a\_work\1\s\vcpkg\packages\clblast_x64-windows" >> $CLBLAST_PATH
shell: bash

- uses: dtolnay/rust-toolchain@stable
- name: Check
run: cargo check --verbose
Expand Down

0 comments on commit 84652f3

Please sign in to comment.