Skip to content

Commit 3a21a90

Browse files
committed
Restore static case
1 parent 5a44d92 commit 3a21a90

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/openblas-src.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
feature:
1616
- system
1717
- "system,static"
18+
rustflags:
19+
- "-C target-feature=+crt-static"
20+
- ""
1821
steps:
1922
- uses: actions/checkout@v1
2023
- uses: actions/cache@v2
@@ -26,10 +29,14 @@ jobs:
2629
git clone https://github.com/Microsoft/vcpkg.git --depth 1
2730
cd vcpkg
2831
./bootstrap-vcpkg.bat
29-
- name: Install static OpenBLAS by vcpkg
32+
- name: Install static-md OpenBLAS by vcpkg
3033
run: |
3134
./vcpkg/vcpkg.exe install openblas:x64-windows-static-md
32-
if: ${{ matrix.feature == 'system,static' }}
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 != "" }}
3340
- name: Install OpenBLAS by vcpkg
3441
run: |
3542
./vcpkg/vcpkg.exe install openblas:x64-windows
@@ -42,6 +49,7 @@ jobs:
4249
--manifest-path=openblas-src/Cargo.toml
4350
env:
4451
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
52+
RUSTFLAGS: ${{ matrix.rustflags }}
4553

4654
macos:
4755
runs-on: macos-10.15

0 commit comments

Comments
 (0)