Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mswin gh actions #21: fix win32bit artifacts
- Loading branch information
Showing
3 changed files
with
271 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,229 @@ | ||
jobs: | ||
perl: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Setup perl | ||
uses: shogo82148/actions-setup-perl@v1 | ||
with: | ||
distribution: strawberry | ||
perl-version: ${{ matrix.perl-version }} | ||
- name: Set git to use LF | ||
run: 'git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
' | ||
- uses: actions/checkout@v2 | ||
- name: perl -V | ||
run: perl -V | ||
- name: install cpanm and mult modules | ||
uses: perl-actions/install-with-cpanm@v1 | ||
with: | ||
install: 'Code::TidyAll::Plugin::ClangFormat | ||
Code::TidyAll::Plugin::TestCount | ||
CHI | ||
Devel::Trace | ||
Games::Solitaire::Verify::HorneAutomovePrune | ||
LWP | ||
Perl::Tidy | ||
Task::FreecellSolver::Testing | ||
Test::Code::TidyAll' | ||
- name: install and test_script code | ||
run: '@echo on | ||
SET MSYS_PACKAGES=mingw-w64-x86_64-cmocka mingw-w64-i686-cmocka mingw-w64-x86_64-pkg-config | ||
mingw-w64-i686-pkg-config | ||
SET PY3MODS=cffi freecell_solver pycotap pysol_cards random2 six | ||
dir | ||
cd | ||
c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu" | ||
c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu" | ||
choco install ag | ||
if not exist C:\libtap mkdir C:\libtap | ||
copy c:\Python35-x64\python.exe c:\Python35-x64\python3.exe | ||
SET PATH=C:\Python35-x64;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH% | ||
python3 -mpip install %PY3MODS% | ||
perl -v | ||
copy C:\msys64\mingw64\bin\mingw32-make.exe C:\msys64\mingw64\bin\make.exe | ||
SET PATH=C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH% | ||
SET PERL5LIB=C:/_P5/lib/perl5 | ||
SET PERL_LOCAL_LIB_ROOT=C:/_P5 | ||
SET PERL_MB_OPT=--install_base C:/_P5 | ||
SET PERL_MM_OPT=INSTALL_BASE=C:/_P5 | ||
perl -v | ||
curl -o C:\libtap\gperf-3.0.4.tar.gz http://ftp.gnu.org/pub/gnu/gperf/gperf-3.0.4.tar.gz | ||
copy C:\libtap\gperf-3.0.4.tar.gz . | ||
tar -xvf gperf-3.0.4.tar.gz | ||
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 .. | ||
git clone https://github.com/clibs/cmocka libtap | ||
mkdir libtap\b | ||
cd libtap\b | ||
set CMAKE_MAKE_PROGRAM=C:\strawberry\c\bin\gmake.exe | ||
cmake -G "MinGW Makefiles" -DCMAKE_MAKE_PROGRAM=%CMAKE_MAKE_PROGRAM% | ||
-DCMAKE_INSTALL_PREFIX=C:\libtap .. | ||
echo %PATH% | ||
gmake | ||
gmake install | ||
cd ..\..\ | ||
git clone https://github.com/shlomif/rinutils rinutils | ||
mkdir rinutils\b | ||
cd rinutils\b | ||
set CMAKE_MAKE_PROGRAM=C:\strawberry\c\bin\gmake.exe | ||
cmake -G "MinGW Makefiles" -DWITH_TEST_SUITE=OFF -DCMAKE_MAKE_PROGRAM=%CMAKE_MAKE_PROGRAM% | ||
-DCMAKE_INSTALL_PREFIX=C:\libtap .. | ||
echo %PATH% | ||
gmake | ||
gmake install | ||
SET MYOLDPATH_=%PATH% | ||
SET PATH=C:\MinGW\bin;%PATH% | ||
mkdir ..\b32 | ||
cd ..\b32 | ||
cmake -G "MinGW Makefiles" -DWITH_TEST_SUITE=OFF -DCMAKE_MAKE_PROGRAM=%CMAKE_MAKE_PROGRAM% | ||
-DCMAKE_INSTALL_PREFIX=C:\libtap32 .. | ||
echo %PATH% | ||
gmake | ||
gmake install | ||
SET PATH=%MYOLDPATH_% | ||
cd ..\..\ | ||
set CMAKE_MAKE_PROGRAM=C:\strawberry\c\bin\gmake.exe | ||
set LIBRARY_PATH=C:\libtap\lib | ||
set CMAKE_LIBRARY_PATH=C:\libtap\lib | ||
set CMAKE_PREFIX_PATH=C:/libtap;c:/libtap32 | ||
set LD_LIBRARY_PATH=C:\libtap\lib | ||
set PKG_CONFIG_PATH=C:\libtap\lib\pkgconfig; | ||
dir c:\libtap /s | ||
set CPATH=C:\libtap\include | ||
set PATH=C:\libtap\bin;%PATH% | ||
set PATH=C:\msys64\mingw64\bin;%PATH% | ||
del c:\msys64\mingw64\bin\python*.exe | ||
set HARNESS_BREAK=1 | ||
set FCS_USE_TEST_RUN=1 | ||
mkdir fc-solve\b | ||
cd fc-solve\b | ||
perl ../scripts/Tatzer -G "MinGW Makefiles" -l x64t --dbm=kaztree | ||
SET PATH=C:\projects\fc-solve\fc-solve\scripts\win32;%PATH% | ||
echo %PATH% | ||
gmake | ||
gmake boards | ||
SET PATH=C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;C:\_P5\bin;%PATH% | ||
perl ../source/run-tests.pl | ||
cd .. | ||
mkdir pkg-build-win64 | ||
cd pkg-build-win64 | ||
perl ../scripts/Tatzer -G "MinGW Makefiles" --notest-suite -r | ||
gmake package | ||
cpack -G WIX | ||
' | ||
shell: cmd | ||
- name: upload build artifacts - Freecell Solver Win64 Package | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Freecell Solver Win64 Package | ||
path: fc-solve\pkg-build-win64\freecell-solver-*-win64.exe | ||
- name: upload build artifacts - Freecell Solver Win64 MSI Package | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Freecell Solver Win64 MSI Package | ||
path: fc-solve\pkg-build-win64\freecell-solver-*.msi | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
perl-version: | ||
- '5.30' | ||
name: windows | ||
'on': | ||
pull_request: null | ||
push: | ||
branches: | ||
- '*' | ||
tags-ignore: | ||
- '*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters