1
1
name : Windows build
2
2
3
- defaults :
4
- run :
5
- shell : bash
6
-
7
3
on :
8
4
push :
9
5
branches : [ master ]
13
9
env :
14
10
OPENBLAS_COMMIT : " bfd9c1b58cd3"
15
11
OPENBLAS_ROOT : " c:\\ opt"
12
+ # Preserve working directory for calls into bash
13
+ CHERE_INVOKING : " yes"
14
+ BASH_PATH : " c:\\ rtools40\\ usr\\ bin\\ bash"
16
15
17
16
jobs :
18
17
build :
@@ -32,46 +31,40 @@ jobs:
32
31
- name : install-rtools
33
32
run : |
34
33
choco install rtools --no-progress
35
- - name : show-gfortran
36
- run : |
37
- gcc --version
38
- gfortran --version
39
34
40
35
- name : Set env variables
41
36
run : |
42
- BITS= ${{ matrix.BUILD_BITS }}
43
- echo "BUILD_BITS=$BITS" >> $GITHUB_ENV;
37
+ $ BITS = ${{ matrix.BUILD_BITS }}
38
+ echo "BUILD_BITS=$BITS" >> $GITHUB_ENV
44
39
# For interpretation of MSYSTEM, see:
45
40
# https://sourceforge.net/p/msys2/discussion/general/thread/b7dfdac8/#3939
46
- if [ " $BITS" == "32" ]; then
41
+ if ( $BITS" -eq 32 ) {
47
42
echo "PLAT=i686" >> $GITHUB_ENV
48
43
echo "MSYSTEM=MINGW32" >> $GITHUB_ENV
49
44
echo "LDFLAGS='-static -static-libgcc'" >> $GITHUB_ENV
50
- else
45
+ } else {
51
46
echo "PLAT=x86_64" >> $GITHUB_ENV
52
47
echo "MSYSTEM=UCRT64" >> $GITHUB_ENV
53
48
echo "LDFLAGS='-lucrt -static -static-libgcc'" >> $GITHUB_ENV
54
- fi
49
+ }
55
50
echo "START_DIR=$PWD" >> $GITHUB_ENV
56
- if [ " ${{ matrix.INTERFACE64 }}" == "1" ]; then
51
+ if ( ${{ matrix.INTERFACE64 }} == 1 ) {
57
52
echo "INTERFACE64=1" >> $GITHUB_ENV
58
- fi
59
- # Preserve the current working directory in bash call.
60
- echo "CHERE_INVOKING='yes'" >> $GITHUB_ENV
53
+ }
61
54
62
55
- name : Build
63
56
run : |
64
57
git submodule update --init --recursive
65
- /c/rtools40/usr/bin/bash -lc tools/ build_openblas.sh
58
+ & $env:BASH_PATH -lc tools\ build_openblas.sh
66
59
67
60
- name : Test
68
61
run : |
69
- tools/ build_gfortran.sh
62
+ & $env:BASH_PATH -lc tools\ build_gfortran.sh
70
63
cp test.exe builds
71
64
cp test_dyn.exe builds
72
- ./ test.exe
73
- cp $(cygpath $ OPENBLAS_ROOT)/ $BITS/ bin/ *.dll .
74
- ./ test_dyn.exe
65
+ .\ test.exe
66
+ cp $OPENBLAS_ROOT\ $BITS\ bin\ *.dll .
67
+ .\ test_dyn.exe
75
68
76
69
- uses : actions/upload-artifact@v3
77
70
with :
82
75
OPENBLAS_LIBS_STAGING_UPLOAD_TOKEN : ${{ secrets.MULTIBUILD_WHEELS_STAGING_ACCESS }}
83
76
run : |
84
77
pip install -q git+https://github.com/Anaconda-Platform/[email protected]
85
- tools/ upload_to_anaconda_staging.sh
78
+ & $env:BASH_PATH -lc tools\ upload_to_anaconda_staging.sh
0 commit comments