Skip to content

Commit 8b31858

Browse files
ngotxicilion
authored andcommitted
ci, bugfix: fix windows build (#367)
1 parent 7bbbb14 commit 8b31858

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

appveyor.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
environment:
2-
matrix:
3-
- image: Visual Studio 2017
1+
image: Visual Studio 2017
42

53
platform:
64
- x64
@@ -11,9 +9,8 @@ install:
119
- git submodule update
1210

1311
test_script:
14-
- IF /I "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2017"
15-
- IF /I "%PLATFORM%" == "x64" ECHO "x64 building..." && CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 && build release amd64 && cd test && ..\bin\Windows_amd64_release\fibjs.exe --prof main.js
16-
- IF /I "%PLATFORM%" == "x86" ECHO "x86 building..." && CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86 && build release i386 && cd test && ..\bin\Windows_i386_release\fibjs.exe --prof main.js
12+
- IF /I "%PLATFORM%" == "x64" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" && ECHO "x64 building..." && build release amd64 && cd test && ..\bin\Windows_amd64_release\fibjs.exe --prof main.js
13+
- IF /I "%PLATFORM%" == "x86" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat" && ECHO "x86 building..." && build release i386 && cd test && ..\bin\Windows_i386_release\fibjs.exe --prof main.js
1714
- IF /I "%APPVEYOR_REPO_TAG%" == "false" set APPVEYOR_REPO_TAG_NAME=dist
1815
- mkdir %APPVEYOR_REPO_TAG_NAME%
1916
- IF /I "%PLATFORM%" == "x64" copy .\bin\Windows_amd64_release\fibjs.exe .\%APPVEYOR_REPO_TAG_NAME%\fibjs-%APPVEYOR_REPO_TAG_NAME%-windows-x64.exe

0 commit comments

Comments
 (0)