Skip to content

Quickstart

Markdown version

Run the CI/CD template with its steps on machines Cadence.CI starts in your cloud account, and follow the run in the console.

You need:

  • Mélodium 0.11 or later (melodium --version);
  • a Cadence.CI account: the free Access plan is enough;
  • a cloud account with one of the supported providers.

In the console, open Clouds, pick your provider, and click Connect. Connect a Cloud lists the fields to fill in and the permissions the credentials need.

At the root of a Git repository:

Terminal window
melodium new --template cicd --path .melodium-ci cicd

This creates .melodium-ci/ with the CI/CD program: a build step and a test step, each in its own container on its own machine, the first one streaming a file to the second. CI/CD Template explains each part.

Terminal window
melodium check .melodium-ci/Compo.toml

Nothing runs yet: Mélodium checks the whole program, types, connections and parameters, and prints nothing when it is valid. A mistake is reported here, with its line and its cause, in about a second instead of minutes later on a runner.

In the console, open Keys, then Create Token next to Run Tokens. Copy the token when it appears: it is shown only once.

Terminal window
export MELODIUM_API_TOKEN="<your run token>"
melodium run --api-report .melodium-ci/Compo.toml \
--repository_clone_url "https://github.com/<you>/<repository>.git" \
--repository_clone_ref main
  • --api-report reports the run to Cadence.CI, with its logs, debug events and program.
  • The template finds the run token in MELODIUM_API_TOKEN and asks Cadence.CI for a machine for each step. Cadence.CI starts them in your cloud account and stops them when the steps end.
  • The build step clones the repository itself, so use one it can reach, such as a public repository.

The logs also print in your terminal. The template’s steps ask for ARM64 machines: if the run shows Unschedulable, none of your connected accounts offers a matching instance type, see How Instance Selection Works.

No cloud account at hand yet? Add --work_location compose to run the steps as containers on your machine, with Docker or Podman and Compose installed.

Open Runs in the console. The run page shows the pipeline graph with the timeline of what the engine did, the logs, and the debug events. View Results walks through each part.

Pipeline graph and debug timeline of a run