Skip to content

Commit

Permalink
mswin gh actions #27: try2add error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomif committed Oct 2, 2021
1 parent 7228310 commit 7dd97a7
Show file tree
Hide file tree
Showing 3 changed files with 190 additions and 145 deletions.
163 changes: 92 additions & 71 deletions .github/workflows/windows-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,159 +48,180 @@ jobs:
SET PY3MODS=cffi freecell_solver pycotap pysol_cards random2 six
dir
dir || ( echo Failed & exit /B 1 )
cd
cd || ( echo Failed & exit /B 1 )
c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu"
c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu" || ( echo Failed
& exit /B 1 )
c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu"
c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu" || ( echo Failed
& exit /B 1 )
choco install ag
choco install ag || ( echo Failed & exit /B 1 )
if not exist C:\libtap mkdir C:\libtap
if not exist C:\libtap mkdir C:\libtap || ( echo Failed & exit /B
1 )
copy c:\Python35-x64\python.exe c:\Python35-x64\python3.exe
copy c:\Python35-x64\python.exe c:\Python35-x64\python3.exe || ( echo
Failed & exit /B 1 )
python3 -mpip install %PY3MODS%
python3 -mpip install %PY3MODS% || ( echo Failed & exit /B 1 )
perl -v
perl -v || ( echo Failed & exit /B 1 )
copy C:\msys64\mingw64\bin\mingw32-make.exe C:\msys64\mingw64\bin\make.exe
|| ( echo Failed & exit /B 1 )
SET PERL5LIB=C:/_P5/lib/perl5
SET PERL5LIB=C:/_P5/lib/perl5 || ( echo Failed & exit /B 1 )
SET PERL_LOCAL_LIB_ROOT=C:/_P5
SET PERL_LOCAL_LIB_ROOT=C:/_P5 || ( echo Failed & exit /B 1 )
SET PERL_MB_OPT=--install_base C:/_P5
SET PERL_MB_OPT=--install_base C:/_P5 || ( echo Failed & exit /B 1
)
SET PERL_MM_OPT=INSTALL_BASE=C:/_P5
SET PERL_MM_OPT=INSTALL_BASE=C:/_P5 || ( echo Failed & exit /B 1 )
perl -v
perl -v || ( echo Failed & exit /B 1 )
curl -o C:\libtap\gperf-3.0.4.tar.gz http://ftp.gnu.org/pub/gnu/gperf/gperf-3.0.4.tar.gz
|| ( echo Failed & exit /B 1 )
copy C:\libtap\gperf-3.0.4.tar.gz .
copy C:\libtap\gperf-3.0.4.tar.gz . || ( echo Failed & exit /B 1 )
tar -xvf gperf-3.0.4.tar.gz
tar -xvf gperf-3.0.4.tar.gz || ( echo Failed & exit /B 1 )
cd gperf-3.0.4 && perl -e "if (-e qq#C:\\libtap\\bin\\gperf.exe#)
{ exit(0); } $ENV{PATH} = qq#C:\\msys64\\mingw64\\bin;$ENV{PATH}#;
system(''sh configure --prefix=C:/libtap'') or system(''gmake'') or
system(''gmake install'');" && cd ..
system(''gmake install'');" && cd .. || ( echo Failed & exit /B 1
)
git clone https://github.com/clibs/cmocka libtap
git clone https://github.com/clibs/cmocka libtap || ( echo Failed
& exit /B 1 )
mkdir libtap\b
mkdir libtap\b || ( echo Failed & exit /B 1 )
cd libtap\b
cd libtap\b || ( echo Failed & exit /B 1 )
set CMAKE_MAKE_PROGRAM=C:\strawberry\c\bin\gmake.exe
set CMAKE_MAKE_PROGRAM=C:\strawberry\c\bin\gmake.exe || ( echo Failed
& exit /B 1 )
cmake -G "MinGW Makefiles" -DCMAKE_MAKE_PROGRAM=%CMAKE_MAKE_PROGRAM%
-DCMAKE_INSTALL_PREFIX=C:\libtap ..
-DCMAKE_INSTALL_PREFIX=C:\libtap .. || ( echo Failed & exit /B 1 )
echo %PATH%
echo %PATH% || ( echo Failed & exit /B 1 )
gmake
gmake || ( echo Failed & exit /B 1 )
gmake install
gmake install || ( echo Failed & exit /B 1 )
cd ..\..\
cd ..\..\ || ( echo Failed & exit /B 1 )
git clone https://github.com/shlomif/rinutils rinutils
git clone https://github.com/shlomif/rinutils rinutils || ( echo Failed
& exit /B 1 )
mkdir rinutils\b
mkdir rinutils\b || ( echo Failed & exit /B 1 )
cd rinutils\b
cd rinutils\b || ( echo Failed & exit /B 1 )
set CMAKE_MAKE_PROGRAM=C:\strawberry\c\bin\gmake.exe
set CMAKE_MAKE_PROGRAM=C:\strawberry\c\bin\gmake.exe || ( echo Failed
& exit /B 1 )
cmake -G "MinGW Makefiles" -DWITH_TEST_SUITE=OFF -DCMAKE_MAKE_PROGRAM=%CMAKE_MAKE_PROGRAM%
-DCMAKE_INSTALL_PREFIX=C:\libtap ..
-DCMAKE_INSTALL_PREFIX=C:\libtap .. || ( echo Failed & exit /B 1 )
echo %PATH%
echo %PATH% || ( echo Failed & exit /B 1 )
gmake
gmake || ( echo Failed & exit /B 1 )
gmake install
gmake install || ( echo Failed & exit /B 1 )
SET MYOLDPATH_=%PATH%
SET MYOLDPATH_=%PATH% || ( echo Failed & exit /B 1 )
mkdir ..\b32
mkdir ..\b32 || ( echo Failed & exit /B 1 )
cd ..\b32
cd ..\b32 || ( echo Failed & exit /B 1 )
cmake -G "MinGW Makefiles" -DWITH_TEST_SUITE=OFF -DCMAKE_MAKE_PROGRAM=%CMAKE_MAKE_PROGRAM%
-DCMAKE_INSTALL_PREFIX=C:\libtap32 ..
-DCMAKE_INSTALL_PREFIX=C:\libtap32 .. || ( echo Failed & exit /B 1
)
echo %PATH%
echo %PATH% || ( echo Failed & exit /B 1 )
gmake
gmake || ( echo Failed & exit /B 1 )
gmake install
gmake install || ( echo Failed & exit /B 1 )
SET PATH=%MYOLDPATH_%
SET PATH=%MYOLDPATH_% || ( echo Failed & exit /B 1 )
cd ..\..\
cd ..\..\ || ( echo Failed & exit /B 1 )
set CMAKE_MAKE_PROGRAM=C:\strawberry\c\bin\gmake.exe
set CMAKE_MAKE_PROGRAM=C:\strawberry\c\bin\gmake.exe || ( echo Failed
& exit /B 1 )
set LIBRARY_PATH=C:\libtap\lib
set LIBRARY_PATH=C:\libtap\lib || ( echo Failed & exit /B 1 )
set CMAKE_LIBRARY_PATH=C:\libtap\lib
set CMAKE_LIBRARY_PATH=C:\libtap\lib || ( echo Failed & exit /B 1
)
set CMAKE_PREFIX_PATH=C:/libtap;c:/libtap32
set CMAKE_PREFIX_PATH=C:/libtap;c:/libtap32 || ( echo Failed & exit
/B 1 )
set LD_LIBRARY_PATH=C:\libtap\lib
set LD_LIBRARY_PATH=C:\libtap\lib || ( echo Failed & exit /B 1 )
set PKG_CONFIG_PATH=C:\libtap\lib\pkgconfig;
set PKG_CONFIG_PATH=C:\libtap\lib\pkgconfig; || ( echo Failed & exit
/B 1 )
dir c:\libtap /s
dir c:\libtap /s || ( echo Failed & exit /B 1 )
set CPATH=C:\libtap\include
set CPATH=C:\libtap\include || ( echo Failed & exit /B 1 )
set PATH=C:\libtap\bin;%PATH%
set PATH=C:\libtap\bin;%PATH% || ( echo Failed & exit /B 1 )
del c:\msys64\mingw64\bin\python*.exe
del c:\msys64\mingw64\bin\python*.exe || ( echo Failed & exit /B 1
)
set HARNESS_BREAK=1
set HARNESS_BREAK=1 || ( echo Failed & exit /B 1 )
set FCS_USE_TEST_RUN=1
set FCS_USE_TEST_RUN=1 || ( echo Failed & exit /B 1 )
mkdir fc-solve\b
mkdir fc-solve\b || ( echo Failed & exit /B 1 )
cd fc-solve\b
cd fc-solve\b || ( echo Failed & exit /B 1 )
perl ../scripts/Tatzer -G "MinGW Makefiles" -l x64t --dbm=kaztree
|| ( echo Failed & exit /B 1 )
SET PATH=C:\projects\fc-solve\fc-solve\scripts\win32;%PATH%
SET PATH=C:\projects\fc-solve\fc-solve\scripts\win32;%PATH% || ( echo
Failed & exit /B 1 )
echo %PATH%
echo %PATH% || ( echo Failed & exit /B 1 )
gmake
gmake || ( echo Failed & exit /B 1 )
gmake boards
gmake boards || ( echo Failed & exit /B 1 )
perl ../source/run-tests.pl
perl ../source/run-tests.pl || ( echo Failed & exit /B 1 )
echo %PATH%
echo %PATH% || ( echo Failed & exit /B 1 )
SET CC=cc
SET CC=cc || ( echo Failed & exit /B 1 )
SET CXX=c++
SET CXX=c++ || ( echo Failed & exit /B 1 )
cd ..
cd .. || ( echo Failed & exit /B 1 )
mkdir pkg-build-win64
mkdir pkg-build-win64 || ( echo Failed & exit /B 1 )
cd pkg-build-win64
cd pkg-build-win64 || ( echo Failed & exit /B 1 )
perl ../scripts/Tatzer -G "MinGW Makefiles" --notest-suite -r
perl ../scripts/Tatzer -G "MinGW Makefiles" --notest-suite -r || (
echo Failed & exit /B 1 )
gmake package
gmake package || ( echo Failed & exit /B 1 )
cpack -G WIX
cpack -G WIX || ( echo Failed & exit /B 1 )
'
shell: cmd
Expand Down
Loading

0 comments on commit 7dd97a7

Please sign in to comment.