4
4
5
5
defaults :
6
6
run :
7
- shell : bash
7
+ shell : bash
8
8
9
9
on :
10
10
push :
13
13
branches : [ master ]
14
14
15
15
env :
16
- OPENBLAS_COMMIT : 349b722d8d09303
16
+ OPENBLAS_COMMIT : " 4ad33c46b0c "
17
17
OPENBLAS_ROOT : " c:\\ opt"
18
18
19
19
jobs :
26
26
exclude :
27
27
- BUILD_BITS : 32
28
28
INTERFACE64 : 1
29
-
29
+ fail-fast : false
30
30
runs-on : ${{ matrix.os }}
31
31
32
32
steps :
@@ -39,22 +39,35 @@ jobs:
39
39
echo "BUILD_BITS=$BITS" >> $GITHUB_ENV;
40
40
if [ "$BITS" == "32" ]; then
41
41
echo "PLAT=i686" >> $GITHUB_ENV;
42
-
43
42
else
44
43
echo "PLAT=x86_64" >> $GITHUB_ENV;
45
44
fi
46
45
echo "START_DIR=$PWD" >> $GITHUB_ENV;
47
46
choco install -y zip
48
47
49
48
- run : |
50
- choco install -y mingw --forcex86 --force --version=7.3.0
49
+ choco install -y mingw --forcex86 --force --version=8.1.0
50
+ choco install -y make
51
51
name: Install 32-bit mingw
52
52
shell: powershell
53
53
if: ${{ matrix.BUILD_BITS == '32' }}
54
54
55
+ - run : |
56
+ # see https://www.mail-archive.com/[email protected] /msg586184.html
57
+ if [ "${{ matrix.BUILD_BITS }}" == "64" ]; then
58
+ include=/c/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/avx512fintrin.h
59
+ else
60
+ include=/c/ProgramData/Chocolatey/lib/mingw/tools/install/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/avx512fintrin.h
61
+ fi
62
+ sed -i -e"s/_mm512_abs_pd (__m512 __A)/_mm512_abs_pd (__m512d __A)/" $include
63
+ name: Fix gcc bug
64
+
55
65
- name : Build
56
66
run : |
57
67
BITS=${{ matrix.BUILD_BITS }}
68
+ if [ "${{ matrix.INTERFACE64 }}" == "1" ]; then
69
+ export INTERFACE64=1
70
+ fi
58
71
if [ "$BITS" == "32" ]; then
59
72
export PATH=/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw32/bin:$PATH
60
73
fi
@@ -68,17 +81,19 @@ jobs:
68
81
if [ "$BITS" == "32" ]; then
69
82
export PATH=/c/ProgramData/chocolatey/lib/mingw/tools/install/mingw32/bin:$PATH
70
83
fi
84
+ if [ "${{ matrix.INTERFACE64 }}" == "1" ]; then
85
+ export INTERFACE64=1
86
+ fi
71
87
tools/build_gfortran.sh
72
88
cp test.exe builds
73
89
cp test_dyn.exe builds
74
90
./test.exe
75
91
cp $(cygpath $OPENBLAS_ROOT)/$BITS/bin/*.dll .
76
92
./test_dyn.exe
77
-
93
+
78
94
- name : Upload
79
95
env :
80
96
OPENBLAS_LIBS_STAGING_UPLOAD_TOKEN : ${{ secrets.MULTIBUILD_WHEELS_STAGING_ACCESS }}
81
97
run : |
82
98
pip install -q git+https://github.com/Anaconda-Platform/[email protected]
83
99
tools/upload_to_anaconda_staging.sh
84
-
0 commit comments