QNX provides support for many open-source libraries to run natively on its operating system. QNX members port these libraries and push them to respective upstream repositories. Currently, there is no automated way for the upstream maintainers to verify if the build succeeds or if iterative changes to the library causes any build errors. In this blog, we talk about tried and tested ways to enable building any open-source library for QNX in their native GitHub Actions pipeline, on each commit or PR.
License Sign Up
To get started, maintainer should sign up for QNX-E license via their professional email. Steps are listed here.
Storing SDP persistently
GitHub provides 2 ways to store our SDP, either in form of an archive or as a docker image:
Use archived SDP:
Maintainer can install SDP8 via QSC locally. They should then create an archive from this "~/qnx800" SDP and "~/.qnx" hidden license to GitHub via OCI registry client.
In the workflow, this package can then be pulled via
and used. Note, it is important to have ".qnx" folder in default home directory of the workflow machine, else license check fails.
Following packages are required to be installed in the workflow
Use docker image containing SDP:
Maintainer should create a custom ubuntu docker image having SDP and above packages installed, following which QNX builds can directly run.
Steps:
- Run an ubuntu-latest docker. Install QSC and QNX8 SDP via CLI
- Install the above-mentioned packages (for QEMU enablement)
- Docker commit to create a new image from with all essentials baked in
- Push custom docker image as private organization/repository level package
Example Dockerfile (additional packages can be installed based on library needs)
USERNAME, PASSWORD and LICENSE can be passed to docker build command via --build-arg (ideally through GitHib Secrets if building image via Actions workflow).
Building the library
Either method requires having a GitHub Token to pull the package within pipeline. Maintainer should create a "read:package" level token and store it in GitHub Actions Secrets. In case of an archive package, oras can be used to pull in the package archive and unarchived SDP can then be used to build
For ubuntu docker with SDP, "container" can be used directly in Github Actions run
and build and test commands can be run within.
Post this source the SDP environment and build the library via steps mentioned in the library-specific qnx-ports/build-files.
Spin up QEMU and run tests (optional):
Maintainers can additionally add test run to pipeline. This requires QEMU image to be created within a new empty folder
Transfer test binaries and shared library dependencies to target image via scp
Send test commands via ssh, check if any command failed via checking return status of the command using $? (and logs will also show results). Potential QNX-specific failures can also be skipped (via test framework-specific exclude commands).
Here is an example of QNX build pipeline via qnx-build.yml for qnx-ports/epoll









