1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-13 03:19:58 +03:00
inav/docs/development/Building in Github Codespace.md
2025-07-11 22:16:37 +01:00

2 KiB

Building in GitHub Codespaces

A codespace is a cloud-hosted development environment.
This guide provides a simple method to modify and build a version of INAV in the cloud.

Setup

  1. Navigate to the version of INAV you want to modify.
  2. Create a new codespace for that version. Code> Codespaces> Create codespace on 8.x.x. image

A new codespace will launch in your browser.

Modify

  1. Modify the code as required. You can freeley modify your copy of the INAV code from within the cloud environment.

Build

Use the terminal inside the codespace environment to run the following commands:

Prepare

4. Prepare the build:

cmake -B build -S .
image

Note: You may need to use ctrl+C to exit the process and return to the shell once it completes.

Target

5. (Optional) If you don't know your target name, list the availble targests with:

cmake --build build --target help
image

Build

6. Build the binary (replace the target name with your specific one):

cmake --build build --target NEUTRONRCF435MINI
image

Download

  1. Once the build process has complete, download the .hex binary from the build folder on the right. Example: inav_8.0.1_NEUTRONRCF435MINI.hex (Right-click > Download. image

Note: Codespaces are automatically deleted after a period of inactivity, or you can manually deleted them at https://github.com/codespaces