Skip to content

Commit

Permalink
building without opencl on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-epifanov committed Feb 6, 2022
1 parent 01c83be commit 2d846f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d846f8

Please sign in to comment.