@@ -12,12 +12,10 @@ jobs:
12
12
strategy :
13
13
fail-fast : false
14
14
matrix :
15
- feature :
16
- - system
17
- - " system,static"
18
- rustflags :
19
- - " -C target-feature=+crt-static"
20
- - " "
15
+ triple :
16
+ - x64-windows
17
+ - x64-windows-static
18
+ - x64-windows-static-md
21
19
steps :
22
20
- uses : actions/checkout@v1
23
21
- uses : actions/cache@v2
@@ -29,27 +27,37 @@ jobs:
29
27
git clone https://github.com/Microsoft/vcpkg.git --depth 1
30
28
cd vcpkg
31
29
./bootstrap-vcpkg.bat
32
- - name : Install static-md OpenBLAS by vcpkg
33
- run : |
34
- ./vcpkg/vcpkg.exe install openblas:x64-windows-static-md
35
- if : ${{ matrix.feature == 'system,static' && matrix.rustflags == '' }}
36
- - name : Install static OpenBLAS by vcpkg
37
- run : |
38
- ./vcpkg/vcpkg.exe install openblas:x64-windows-static
39
- if : ${{ matrix.feature == 'system,static' && matrix.rustflags != '' }}
40
30
- name : Install OpenBLAS by vcpkg
41
31
run : |
42
- ./vcpkg/vcpkg.exe install openblas:x64-windows
43
- if : ${{ matrix.feature == 'system' }}
32
+ ./vcpkg/vcpkg.exe install openblas:${{ matrix.triple }}
33
+
44
34
- uses : actions-rs/cargo@v1
35
+ name : Test features=system
45
36
with :
46
37
command : test
47
- args : >
48
- --features=${{ matrix.feature }}
49
- --manifest-path=openblas-src/Cargo.toml
38
+ args : --features=system --manifest-path=openblas-src/Cargo.toml
39
+ env :
40
+ VCPKG_ROOT : ${{ github.workspace }}/vcpkg
41
+ if : ${{ matrix.triple == 'x64-windows' }}
42
+
43
+ - uses : actions-rs/cargo@v1
44
+ name : Test features=system,static
45
+ with :
46
+ command : test
47
+ args : --features=system,static --manifest-path=openblas-src/Cargo.toml
48
+ env :
49
+ VCPKG_ROOT : ${{ github.workspace }}/vcpkg
50
+ if : ${{ matrix.triple == 'x64-windows-static-md' }}
51
+
52
+ - uses : actions-rs/cargo@v1
53
+ name : Test features=system,static with crt-static
54
+ with :
55
+ command : test
56
+ args : --features=system,static --manifest-path=openblas-src/Cargo.toml
50
57
env :
51
58
VCPKG_ROOT : ${{ github.workspace }}/vcpkg
52
- RUSTFLAGS : ${{ matrix.rustflags }}
59
+ RUSTFLAGS : " -C target-feature=+crt-static"
60
+ if : ${{ matrix.triple == 'x64-windows-static' }}
53
61
54
62
macos :
55
63
runs-on : macos-10.15
0 commit comments