File tree Expand file tree Collapse file tree 3 files changed +27
-6
lines changed Expand file tree Collapse file tree 3 files changed +27
-6
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 20
20
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
// SOFTWARE.
22
22
23
- use anyhow:: { bail , Result } ;
23
+ use anyhow:: Result ;
24
24
use intel_mkl_tool:: * ;
25
25
use std:: str:: FromStr ;
26
26
@@ -66,12 +66,11 @@ fn main() -> Result<()> {
66
66
// where ocipkg download archive is not searched by ld
67
67
// unless user set `LD_LIBRARY_PATH` explictly.
68
68
if cfg. link == LinkType :: Static {
69
- ocipkg:: link_package ( & format ! (
69
+ let _ = ocipkg:: link_package ( & format ! (
70
70
"ghcr.io/rust-math/rust-mkl/{}:2020.1-2851133947" ,
71
71
MKL_CONFIG
72
- ) ) ?;
73
- return Ok ( ( ) ) ;
72
+ ) ) ;
74
73
}
75
74
76
- bail ! ( "No MKL found" ) ;
75
+ Ok ( ( ) )
77
76
}
Original file line number Diff line number Diff line change @@ -14,5 +14,5 @@ fn main() -> ExitCode {
14
14
num_not_found += 1 ;
15
15
}
16
16
}
17
- return ExitCode :: from ( num_not_found) ;
17
+ ExitCode :: from ( num_not_found)
18
18
}
You can’t perform that action at this time.
0 commit comments