Skip to content

Commit

Permalink
Using RUSTFLAGS="-lcblas" in github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
unic0rn9k committed May 17, 2022
1 parent 2e91a85 commit 5758693
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-lcblas"

jobs:
tests:
Expand Down Expand Up @@ -49,10 +50,10 @@ jobs:
override: true
- name: Install blis
run: sudo apt install libblis-dev
- name: Run cargo-tarpaulin --features blis-sys
- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
args: '--ignore-tests --out Lcov --output-dir target/tarpaulin'
args: '--ignore-tests --out Lcov --output-dir target/tarpaulin --features blis-sys'
- name: Upload to Coveralls
uses: coverallsapp/github-action@master
with:
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,11 @@ Again, this is only applicable when no backend is not specified for a vector (fx
SLAS_BLAS_IN_DOT_IF_LEN_GE = 750
```

### Possible issues during linking
Settings `-lcblas` as flag to the linker, some possible errors during build can be fixed.
This can be done by adding `-lcblas` to rustflags either in `.cargo/config`, `Cargo.toml` or by setting the enviroment variable `RUSTFLAGS`.
On most unix shells this is done by prefixing the command used to invoke rustc with `RUSTFLAGS="-lcblas"`.

### Misc
- Slas is still in very early days, and is subject to a lot of breaking changes.
- [Benchmarks, tests and related](https://github.com/unic0rn9k/slas/tree/master/tests)
Expand Down
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,11 @@
//! SLAS_BLAS_IN_DOT_IF_LEN_GE = 750
//! ```
//!
//! ## Possible issues during linking
//! Settings `-lcblas` as flag to the linker, some possible errors during build can be fixed.
//! This can be done by adding `-lcblas` to rustflags either in `.cargo/config`, `Cargo.toml` or by setting the enviroment variable `RUSTFLAGS`.
//! On most unix shells this is done by prefixing the command used to invoke rustc with `RUSTFLAGS="-lcblas"`.
//!
//! ## Misc
//! - Slas is still in very early days, and is subject to a lot of breaking changes.
//! - [Benchmarks, tests and related](https://github.com/unic0rn9k/slas/tree/master/tests)
Expand Down

0 comments on commit 5758693

Please sign in to comment.