Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
ci(.radicle/ambient.yaml): CI plan for Radicle CI Ambient adapter
Merged liw opened 1 year ago

With this file, Radicle CI can use the Ambient adapter to run CI on patches.

3 files changed +63 -3 9abedf44 8532172d
added .radicle/ambient.yaml
@@ -0,0 +1,53 @@
+
pre_plan:
+
  - action: cargo_fetch
+
plan:
+
  - action: cargo_fmt
+
  - action: cargo_clippy
+
  - action: cargo_build
+
  - action: cargo_test
+

+
  # Make sure docs build.
+
  - action: shell
+
    shell: |
+
      # Because of a (temporary) limitation in Ambient, we need to set
+
      # these variables manually. Once Ambient manages environment
+
      # variables better, these can be deleted.
+
      export CARGO_TARGET_DIR=/workspace/cache
+
      export CARGO_HOME=/workspace/deps
+
      export HOME=/root
+
      export PATH="/root/.cargo/bin:$PATH"
+

+
      cargo doc --workspace --no-deps
+

+
  # Prepare source tree for building a Debian package.
+
  - action: shell
+
    shell: |
+
      # Because of a (temporary) limitation in Ambient, we need to set
+
      # these variables manually. Once Ambient manages environment
+
      # variables better, these can be deleted.
+
      export CARGO_TARGET_DIR=/workspace/cache
+
      export CARGO_HOME=/workspace/deps
+
      export HOME=/root
+
      export PATH="/root/.cargo/bin:$PATH"
+

+
      # These are based on debian/control.
+
      export DEBEMAIL=liw@liw.fi
+
      export DEBFULLNAME="Lars Wirzenius"
+

+
      # Clean up after tests and documentation building. The Debian
+
      # package building tools do not want changes outside the
+
      # `debian` directory, compared to what is committed to Git, from
+
      # which the "upstream tarball" is created.
+
      git reset --hard
+
      git clean -fdx
+
      git status --ignored
+

+
      # Update debian/changelog with a new version so that every run
+
      # creates a newer version. This avoids us having to update the
+
      # file manually for every CI run.
+
      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
modified debian/changelog
@@ -1,3 +1,10 @@
+
radicle (1.1.0-1) unstable; urgency=medium
+

+
  * New release. This is actually 1.1.0 plus various changes that haven't
+
    been released yet.
+

+
 -- Lars Wirzenius <liw@liw.fi>  Wed, 16 Apr 2025 12:26:26 +0300
+

radicle (0.8.0-1) unstable; urgency=medium

  * New release.
modified debian/rules
@@ -9,9 +9,9 @@ override_dh_auto_build:
	scripts/build-man-pages.sh . *.adoc

override_dh_auto_install:
-
	cargo install --locked --path=radicle-cli --root=debian/radicle
-
	cargo install --locked --path=radicle-node --root=debian/radicle
-
	cargo install --locked --path=radicle-remote-helper --root=debian/radicle
+
	cargo install --offline --locked --path=radicle-cli --root=debian/radicle
+
	cargo install --offline --locked --path=radicle-node --root=debian/radicle
+
	cargo install --offline --locked --path=radicle-remote-helper --root=debian/radicle
	rm -f debian/*/.crates*.*

override_dh_auto_test: