Building multiple platforms

justin's Avatar


02 Apr, 2015 07:08 PM

I have a shell script that I want to run to do my build. I am able to successfully call "sh foo" to run the shell script however I can't quite figure out how to pass configuration/platform matrix values to the script. For example I am doing this:

  - x86
  - x64

  - debug
  - release

  - sh bin/nwb configure $env:platform $env:configuration

But this gives me the error:
sh bin/nwb configure $env:platform $env:configuration
Unknown option: $env:platform
Command exited with code 1

Is this because I am running a shell script or is platform/configuration really not available in the build_script section? Any help would be really appreciated!

Also, fyi, it would be nice if in addition to:

  ps: ...

You also supported sh:

  sh: ...

Which would run as a shellscript.

  1. Support Staff 1 Posted by Feodor Fitsner on 02 Apr, 2015 07:32 PM

    Feodor Fitsner's Avatar

    Hi Justin,

    It should be just:

      - sh bin/nwb configure %platform% %configuration%
  2. 2 Posted by justin on 03 Apr, 2015 09:36 AM

    justin's Avatar

    Thanks that worked :)

  3. justin closed this discussion on 03 Apr, 2015 12:08 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? 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