Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: GitHub Pages

on:
push:
branches:
- main

jobs:
pages:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps
- name: Deploy GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc
force_orphan: true
9 changes: 4 additions & 5 deletions intel-mkl-src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

use anyhow::{bail, Result};
use anyhow::Result;
use intel_mkl_tool::*;
use std::str::FromStr;

Expand Down Expand Up @@ -66,12 +66,11 @@ fn main() -> Result<()> {
// where ocipkg download archive is not searched by ld
// unless user set `LD_LIBRARY_PATH` explictly.
if cfg.link == LinkType::Static {
ocipkg::link_package(&format!(
let _ = ocipkg::link_package(&format!(
"ghcr.io/rust-math/rust-mkl/{}:2020.1-2851133947",
MKL_CONFIG
))?;
return Ok(());
));
}

bail!("No MKL found");
Ok(())
}
2 changes: 1 addition & 1 deletion intel-mkl-tool/examples/seek.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ fn main() -> ExitCode {
num_not_found += 1;
}
}
return ExitCode::from(num_not_found);
ExitCode::from(num_not_found)
}