File tree Expand file tree Collapse file tree 3 files changed +37
-11
lines changed Expand file tree Collapse file tree 3 files changed +37
-11
lines changed Original file line number Diff line number Diff line change 47
47
image : rust:1.62.1
48
48
steps :
49
49
- uses : actions/checkout@v1
50
- - uses : actions-rs/cargo@v1
51
- with :
52
- command : install
53
- args : ocipkg-cli
54
50
- uses : actions-rs/cargo@v1
55
51
with :
56
52
command : test
87
83
command : test
88
84
args : >
89
85
--manifest-path=intel-mkl-sys/Cargo.toml
90
- --no-default-features
91
86
--features=${{ matrix.feature }}
92
87
env :
93
88
MKLROOT : ${{ github.workspace }}
89
+
90
+ windows-ocipkg :
91
+ strategy :
92
+ fail-fast : false
93
+ matrix :
94
+ feature :
95
+ - mkl-static-lp64-iomp
96
+ - mkl-static-lp64-seq
97
+ - mkl-static-ilp64-iomp
98
+ - mkl-static-ilp64-seq
99
+ runs-on : windows-2022
100
+ steps :
101
+ - uses : actions/checkout@v1
102
+ - uses : actions-rs/cargo@v1
103
+ with :
104
+ command : test
105
+ args : >
106
+ --manifest-path=intel-mkl-sys/Cargo.toml
107
+ --features=${{ matrix.feature }}
Original file line number Diff line number Diff line change @@ -31,5 +31,9 @@ mkl-dynamic-ilp64-seq = []
31
31
32
32
[build-dependencies ]
33
33
anyhow = " 1.0.58"
34
- ocipkg = " 0.2.6"
35
- intel-mkl-tool = { version = " 0.8.0-rc.0" , path = " ../intel-mkl-tool" , default-features = false }
34
+ ocipkg = " 0.2.8"
35
+
36
+ [build-dependencies .intel-mkl-tool ]
37
+ path = " ../intel-mkl-tool"
38
+ version = " 0.8.0"
39
+ default-features = false
Original file line number Diff line number Diff line change @@ -66,10 +66,18 @@ 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
- let _ = ocipkg:: link_package ( & format ! (
70
- "ghcr.io/rust-math/rust-mkl/{}:2020.1-2851133947" ,
71
- MKL_CONFIG
72
- ) ) ;
69
+ if cfg ! ( target_os = "linux" ) {
70
+ let _ = ocipkg:: link_package ( & format ! (
71
+ "ghcr.io/rust-math/rust-mkl/linux/{}:2020.1-3038006115" ,
72
+ MKL_CONFIG
73
+ ) ) ;
74
+ }
75
+ if cfg ! ( target_os = "windows" ) {
76
+ let _ = ocipkg:: link_package ( & format ! (
77
+ "ghcr.io/rust-math/rust-mkl/windows/{}:2022.0-3038006115" ,
78
+ MKL_CONFIG
79
+ ) ) ;
80
+ }
73
81
}
74
82
75
83
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments