Skip to content

Commit

Permalink
Merge pull request #98 from rust-math/doc-master
Browse files Browse the repository at this point in the history
Deploy cargo-doc to GitHub Pages
  • Loading branch information
termoshtt authored Aug 24, 2022
2 parents 10e8ed9 + 9c4d095 commit 58efa38
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
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)
}

0 comments on commit 58efa38

Please sign in to comment.