File tree Expand file tree Collapse file tree 3 files changed +21
-11
lines changed Expand file tree Collapse file tree 3 files changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -60,11 +60,14 @@ jobs:
60
60
- name : Test
61
61
run : |
62
62
& $env:BASH_PATH -lc tools/build_gfortran.sh
63
- cp test.exe builds
64
- cp test_dyn.exe builds
65
- .\test.exe
66
- cp $OPENBLAS_ROOT\$BITS\bin\*.dll .
67
- .\test_dyn.exe
63
+ echo "Static test"
64
+ .\for_test\test.exe
65
+ echo "Dynamic test"
66
+ .\for_test\test_dyn.exe
67
+
68
+ - name : Copy
69
+ run : |
70
+ cp for_test\test*.exe builds
68
71
69
72
- uses : actions/upload-artifact@v3
70
73
with :
Original file line number Diff line number Diff line change 3
3
* ~
4
4
* .pyc
5
5
* .swp
6
- test.exe
6
+ for_test /
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
- cd $( cygpath " $START_DIR " )
5
+ rm -rf for_test
6
+ mkdir for_test
7
+ cd for_test
8
+
9
+ repo_path=$( cygpath " $START_DIR " )
6
10
OBP=$( cygpath $OPENBLAS_ROOT \\ $BUILD_BITS )
7
11
8
12
static_libname=$( find $OBP /lib -maxdepth 1 -type f -name ' *.a' \! -name ' *.dll.a' | tail -1)
9
13
dynamic_libname=$( find $OBP /lib -maxdepth 1 -type f -name ' *.dll.a' | tail -1)
14
+ dll_name=$( echo $dynamic_libname | sed ' s#/lib/#/bin/#' | sed ' s/.a$//' )
15
+
16
+ cp $dll_name .
10
17
11
18
if [ " $INTERFACE64 " == " 1" ]; then
12
- gfortran -I $OBP /include -fdefault-integer-8 -o test.exe test64_.f90 $static_libname
13
- gfortran -I $OBP /include -fdefault-integer-8 -o test_dyn.exe test64_.f90 $dynamic_libname
19
+ gfortran -I $OBP /include -fdefault-integer-8 -o test.exe ${repo_path} / test64_.f90 $static_libname
20
+ gfortran -I $OBP /include -fdefault-integer-8 -o test_dyn.exe ${repo_path} / test64_.f90 $dynamic_libname
14
21
else
15
- gfortran -I $OBP /include -o test.exe test.f90 $static_libname
16
- gfortran -I $OBP /include -o test_dyn.exe test.f90 $dynamic_libname
22
+ gfortran -I $OBP /include -o test.exe ${start_path} / test.f90 $static_libname
23
+ gfortran -I $OBP /include -o test_dyn.exe ${start_path} / test.f90 $dynamic_libname
17
24
fi
You can’t perform that action at this time.
0 commit comments