-
Notifications
You must be signed in to change notification settings - Fork 69
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 #498 from coq-community/windows-ci
Add support for Windows in CI
- Loading branch information
Showing
2 changed files
with
72 additions
and
0 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,48 @@ | ||
REM Download platform script | ||
|
||
SET PATH=%PATH%;C:\Program Files\7-Zip;C:\Program Files\Git\mingw64\bin | ||
|
||
SET PLATFORM=https://github.com/coq/platform/archive/coq-ci.zip | ||
|
||
SET ARCH=64 | ||
|
||
ECHO "Downloading %PLATFORM%" | ||
curl -L -o platform.zip "%PLATFORM%" | ||
7z x platform.zip | ||
|
||
REM Build the platform | ||
|
||
SET CYGROOT=C:\ci\cygwin%ARCH% | ||
SET CYGCACHE=C:\ci\cache\cygwin | ||
|
||
SET CYGWIN_QUIET=y | ||
|
||
SET COQREGTESTING=y | ||
|
||
cd platform-* | ||
|
||
call coq_platform_make_windows.bat ^ | ||
-arch=%ARCH% ^ | ||
-pick=dev ^ | ||
-destcyg=%CYGROOT% ^ | ||
-cygcache=%CYGCACHE% ^ | ||
-extent=b ^ | ||
-parallel=p ^ | ||
-jobs=2 ^ | ||
-switch=d ^ | ||
-set-switch=y ^ | ||
-override-dev-pkg="coq-core=https://github.com/coq/coq/archive/%PIN_COQ%.tar.gz" ^ | ||
-override-dev-pkg="coq-stdlib=https://github.com/coq/coq/archive/%PIN_COQ%.tar.gz" ^ | ||
-override-dev-pkg="coq=https://github.com/coq/coq/archive/%PIN_COQ%.tar.gz" ^ | ||
|| GOTO ErrorExit | ||
|
||
SET OPAMYES=yes | ||
C:\ci\cygwin64\bin\bash.exe --login -c "opam pin add vscoq-language-server $(cygpath -m '%GITHUB_WORKSPACE%\language-server') --with-doc --with-test -y" || GOTO ErrorExit | ||
|
||
|
||
GOTO :EOF | ||
|
||
:ErrorExit | ||
ECHO ERROR %0 failed | ||
EXIT /b 1 | ||
|