How can I get the current platform in the appveyor.yml scripts?

edgar.osc's Avatar

edgar.osc

05 Apr, 2014 03:28 AM

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.

  1. Support Staff 1 Posted by Feodor Fitsner on 05 Apr, 2014 03:33 AM

    Feodor Fitsner's Avatar

    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 be x86, x64 or Any CPU.

  2. 2 Posted by edgar.osc on 05 Apr, 2014 03:39 AM

    edgar.osc's Avatar

    Hi Feodor,

    thanks for the quick response is there any way to get it? the platform that is?

  3. Support Staff 3 Posted by Feodor Fitsner on 05 Apr, 2014 03:50 AM

    Feodor Fitsner's Avatar

    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.

  4. Support Staff 4 Posted by Feodor Fitsner on 05 Apr, 2014 03:52 AM

    Feodor Fitsner's Avatar

    Btw, there is x64 distro of Node.js is installed on build servers, if it helps.

  5. 5 Posted by edgar.osc on 05 Apr, 2014 04:12 AM

    edgar.osc's Avatar

    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.

  6. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:38 AM.

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

 

26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM
20 Sep, 2024 05:50 PM