Crates.io | radicle-ci-ambient |
lib.rs | radicle-ci-ambient |
version | |
source | src |
created_at | 2025-01-10 14:46:27.230305+00 |
updated_at | 2025-03-26 07:48:18.103024+00 |
description | A Radicle CI adapter for the Ambient CI enbine |
homepage | https://radicle.xyz |
repository | |
max_upload_size | |
id | 1511314 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
radicle-ci-ambient
-- a Radicle CI adapter for Ambient CIIntegrate the Ambient CI software with the Radicle CI broker.
Given a Radicle node with the CI broker:
ambient
on the host. This will
require qemu-system-x86_64
and a virtual machine image./bin/radicle-ci-ambient
but the location doesn't matter, as long
as you specify it correctly in the configuration.default_adapter: ambient
adapters:
ambient:
command: /bin/radicle-ci-ambient
env:
RADICLE_CI_AMBIENT: /home/_rad/radicle-ci-ambient.yaml
RADICLE_CI_BROKER_WEBROOT: /srv/pages/ci-broker
PATH: /bin:/home/_rad/.radicle/bin:/home/_rad/.cargo/bin
PATH
as necessary.radicle/ambient.yaml
This is also known as a distilled plan. It is YAML, with three fields:
pre_plan
plan
post_plan
Each field is a list of Ambient actions. The pre- and post-plan actions are run locally on the host, and have network access, but they're restricted to a small set of variants that are deemed safe and secure, what Ambient calls trusted actions:
cargo_fetch
rsync
dput
The actions in the plan
are less constrained, but they run in a
virtual machine without network access.
mkdir
shell
cargo-fmt
cargo-clippy
cargo-build
cargo-test
cargo-install
deb
(These need to be documented in Ambient.)
Example:
pre_plan:
- action: cargo_fetch
plan:
- action: cargo_fmt
- action: cargo_clippy
- action: shell
shell: |
export DEBEMAIL=liw@liw.fi
export DEBFULLNAME="Lars Wirzenius"
export CARGO_TARGET_DIR=/workspace/cache
# git reset --hard
# git clean -fdx
# git switch main
git status --ignored
# git clean -fdx
V="$(dpkg-parsechangelog -SVersion | sed 's/-[^-]*$//')"
T="$(date -u "+%Y%m%dT%H%M%S")"
version="$V.ci$T-1"
dch -v "$version" "CI build under Ambient."
dch -r ''
- action: deb