diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 00000000..06220927 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -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 diff --git a/intel-mkl-src/build.rs b/intel-mkl-src/build.rs index 93aff639..f420875b 100644 --- a/intel-mkl-src/build.rs +++ b/intel-mkl-src/build.rs @@ -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; @@ -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(()) } diff --git a/intel-mkl-tool/examples/seek.rs b/intel-mkl-tool/examples/seek.rs index 66f15b20..85fb25de 100644 --- a/intel-mkl-tool/examples/seek.rs +++ b/intel-mkl-tool/examples/seek.rs @@ -14,5 +14,5 @@ fn main() -> ExitCode { num_not_found += 1; } } - return ExitCode::from(num_not_found); + ExitCode::from(num_not_found) }