Skip to content

Commit 58efa38

Browse files
authored
Merge pull request #98 from rust-math/doc-master
Deploy cargo-doc to GitHub Pages
2 parents 10e8ed9 + 9c4d095 commit 58efa38

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

.github/workflows/gh-pages.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
pages:
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions-rs/cargo@v1
14+
with:
15+
command: doc
16+
args: --no-deps
17+
- name: Deploy GitHub Pages
18+
uses: peaceiris/actions-gh-pages@v3
19+
with:
20+
github_token: ${{ secrets.GITHUB_TOKEN }}
21+
publish_dir: ./target/doc
22+
force_orphan: true

intel-mkl-src/build.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
// SOFTWARE.
2222

23-
use anyhow::{bail, Result};
23+
use anyhow::Result;
2424
use intel_mkl_tool::*;
2525
use std::str::FromStr;
2626

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

76-
bail!("No MKL found");
75+
Ok(())
7776
}

intel-mkl-tool/examples/seek.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ fn main() -> ExitCode {
1414
num_not_found += 1;
1515
}
1616
}
17-
return ExitCode::from(num_not_found);
17+
ExitCode::from(num_not_found)
1818
}

0 commit comments

Comments
 (0)