This tutorial provides one example on how a CI (Continuous Integration) workflow with the IAR Build Tools for Linux can be set up on GitLab. The IAR Build Tools on Linux are available for Arm, RISC-V and Renesas (RH850, RL78 and RX).
[!WARNING]
The information in this repository is subject to change without notice and does not constitute a commitment by IAR. While it serves as a valuable reference for DevOps Engineers implementing Continuous Integration with IAR Tools, IAR assumes no responsibility for any errors, omissions, or specific implementations.
From a CI/CD perspective, the IAR Build Tools for Arm comes with everything you need to build embedded firmware projects from the command line. This tutorial provides a simple example with general guidelines on how to set up a CI/CD pipeline using GitLab CI while taking advantage of the so-called GitLab self-managed runners.
In case you need an introduction on how to get started with GitLab, use their Tutorials.
Before you begin, you will need to download and install the following:
bxarm-9.60.2.deb
)You also will need:
[!NOTE]
This guide was based on the options available in GitLab v17.4.
Under your organization’s GitLab account:
Pick a group or namespace
.Create project
.Once the importing process is complete, a banner will show up with the message The project was successfully imported.
and you will be taken to your imported repository.
On your private repository, navigate to the .gitlab-ci.yml
workflow file. This file uses the GitLab-flavored YAML to describe a workflow containing multiple jobs typically used in embedded firmware projects.
Refer to the .gitlab-ci.yml
workflow file for detailed comments.
It is straightforward to set up a self-managed GitLab runner in a Linux host with the IAR Build Tools for Arm for building your project on automated workflows:
https://gitlab.com/<username>/bx-gitlab-ci/-/settings/ci_cd
).Expand
Runners.New project runner
.self-hosted
).Create runner
.You will be taken to the next page for registering a newly created runner.
🔘 Linux
as the Operating System.shell
.View runners
.You can have as many parallel build nodes with runners as your license allows you to. Contact IAR Sales for expanding your build capacity.
This tutorial provided an overview of how to get started with the IAR Build Tools for Arm on GitLab using self-managed Linux runners. Development teams can immediately benefit from the comprehensive feedback these modern workflows offer, enabling them to quickly build, analyze, test, and deploy with high quality.
Follow us
on GitHub to get updates about tutorials like this and more.
For technical support contact IAR Customer Support.
For questions or suggestions related to this tutorial: try the wiki or check earlier issues. If those don’t help, create a new issue with detailed information.