-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #310 from azarzadavila/windows
Add CI for Windows
- Loading branch information
Showing
3 changed files
with
62 additions
and
2 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
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,54 @@ | ||
version: 2.0.0-beta.1-{branch}+{build} | ||
image: Visual Studio 2015 | ||
environment: | ||
BOOST_ROOT: C:\Libraries\boost_1_65_1 | ||
|
||
install: | ||
- 'git submodule update --init' | ||
- ps: '$env:path = $env:path.replace("C:\Program Files\Git\usr\bin;", "")' | ||
- ps: '$env:path = "C:\msys64\mingw64\bin;C:\msys64\usr\bin\;" + $env:path' | ||
|
||
build_script: | ||
|
||
# uninstall tcl/tk | ||
- pacman -Rdd --noconfirm mingw-w64-x86_64-tcl mingw-w64-x86_64-tk | ||
|
||
# build tcl | ||
- cd C:\projects | ||
- wget -O tcl-release.tar.gz https://github.com/tcltk/tcl/archive/release.tar.gz | ||
- tar xf tcl-release.tar.gz | ||
- cd tcl-release/win/ | ||
- bash configure --enable-threads --enable-64bit --prefix=C:/tcltk/ | ||
- make | ||
- make install | ||
|
||
# build tk | ||
- cd C:\projects | ||
- wget -O tk-release.tar.gz https://github.com/tcltk/tk/archive/release.tar.gz | ||
- tar xf tk-release.tar.gz | ||
- cd tk-release/win/ | ||
- bash configure --enable-64bit --prefix=C:/tcltk/ --with-tcl=../../tcl-release/win/ | ||
- make | ||
- make install | ||
|
||
# build boost | ||
- cd %BOOST_ROOT% | ||
- call bootstrap.bat gcc | ||
- cat bootstrap.log | ||
- .\b2 toolset=gcc variant=release --with-thread --with-system --with-random --with-filesystem --with-program_options | ||
|
||
# install emacs | ||
# We cannot use $(pacman -S *-emacs because ISS packs C:/.../emacs.exe/../* which would include all of msys) | ||
- choco install emacs64 | ||
|
||
# build mozart2 | ||
- mkdir C:\projects\mozart2\build | ||
- cd C:\projects\mozart2\build | ||
- cmake -DCMAKE_BUILD_TYPE=Release -G"MSYS Makefiles" -DCMAKE_PREFIX_PATH=C:/tcltk -DBOOST_ROOT="%BOOST_ROOT%" -DISS_INCLUDE_TCL=ON -DISS_INCLUDE_EMACS=ON C:\projects\mozart2 | ||
- make check || true | ||
- cmake --build . --target installer -- VERBOSE=1 | ||
|
||
artifacts: | ||
- path: build\mozart2-2.0.0-beta.1-x86_64-windows.exe | ||
name: binary installer | ||
|
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