How can I get the current platform in the appveyor.yml scripts?
Hi,
I'd like to be able to get the platform x86 or x64 in the appveyor.yml build scripts.
Is there a way to do this? I've tried with several env variables but I was not able to find it.
Thanks in advanced.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 05 Apr, 2014 03:33 AM
If you mean OS bitness then right now it's always running on Windows Server 2012 x64.
That
Platform
setting is for MSBuild which can bex86
,x64
orAny CPU
.2 Posted by edgar.osc on 05 Apr, 2014 03:39 AM
Hi Feodor,
thanks for the quick response is there any way to get it? the platform that is?
Support Staff 3 Posted by Feodor Fitsner on 05 Apr, 2014 03:50 AM
Well, if it's set on Build tab of project settings only (or in "build" section of appveyor.yml) you can get it from
platform
environment variable.Support Staff 4 Posted by Feodor Fitsner on 05 Apr, 2014 03:52 AM
Btw, there is x64 distro of Node.js is installed on build servers, if it helps.
5 Posted by edgar.osc on 05 Apr, 2014 04:12 AM
Thanks for the help. The actual nodejs x64 works fine it is when compiling the cpp addons that it seems some libraries are missing or something that fails.
Again thanks for the quick response.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:38 AM.