Zephyr: How to setup a build server using windows command line?

Hi

We are developing Zephyr projects which are compiling and working fine with Visual Studio Code running on a Windows PC.

Now we want to build the projects on a build server running Windows.

The builds should be started from the command line.

The projects are using different NCS versions so it should be possible to select which NCS revision to use for each project when starting a build.

We assume that we have copies of repos per NCS revision on the build server.

We assume that we have a config file to control the NCS and tool chain revision used by the build pipeline for each project.

Can anyone help to setup the build server?

Br Mads Sig.

Parents
  • Hello,

    If you have installed the NCS versions using nRF Connect for Desktop -> Toolchain Manager, it is possible to use this to generate environment scripts:

    I use these to change between NCS versions.

    Just put them somewhere in the path of Windows, and rename them to reflect the NCS version that they represent. Then you can just call them from any terminal, and it will set up the environment for that NCS version.

    In case you are not using nRF Connect for Desktop -> Toolchain Manager, just test this on a different computer, and have a look at the generated environment file. It should be pretty easy to replicate this manually for your build server.

    Best regards,

    Edvin

Reply
  • Hello,

    If you have installed the NCS versions using nRF Connect for Desktop -> Toolchain Manager, it is possible to use this to generate environment scripts:

    I use these to change between NCS versions.

    Just put them somewhere in the path of Windows, and rename them to reflect the NCS version that they represent. Then you can just call them from any terminal, and it will set up the environment for that NCS version.

    In case you are not using nRF Connect for Desktop -> Toolchain Manager, just test this on a different computer, and have a look at the generated environment file. It should be pretty easy to replicate this manually for your build server.

    Best regards,

    Edvin

Children
No Data
Related