From 2d846f811663a8c8a65b6744cc785db940569f83 Mon Sep 17 00:00:00 2001 From: Ilya Epifanov Date: Sun, 6 Feb 2022 13:14:51 +0100 Subject: [PATCH] building without opencl on windows --- .github/workflows/build.yml | 3 ++- Cargo.toml | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f8b6613..437d05a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,7 @@ jobs: - uses: actions/checkout@v2 with: submodules: recursive + - run: sudo apt-get install -y ocl-icd-opencl-dev - uses: actions-rs/toolchain@v1 with: profile: minimal @@ -65,7 +66,7 @@ jobs: - uses: actions-rs/cargo@v1 with: command: build - args: --release + args: --release --no-default-features # without opencl - run: make target/gyroflow-ofx-windows.zip - name: Release uses: softprops/action-gh-release@v1 diff --git a/Cargo.toml b/Cargo.toml index e945514..18f311a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,9 +21,13 @@ rayon = "*" ndarray = { version = "0.15", features = ["rayon"] } float-ord = "0.3.2" lru = "0.7" -gyroflow-core = { path = "gyroflow/src/core/", default-features = false, features = ["use-opencl"], version = "1.0.0-rc1" } +gyroflow-core = { path = "gyroflow/src/core/", default-features = false, version = "1.0.0-rc1" } serde_json = "1" +[features] +default = ["use-opencl"] +use-opencl = ["gyroflow-core/use-opencl"] + [profile.release] opt-level = 3 lto = true