roneocijobs.toml

ee892817f152551895f8482d4db15cefa51ef865

At commit ee89281

95 lines · 3.5 KiBRaw
  1. # Native Forge CI for Ronéo (schema 2, Rust 1.100.0)
  2. # - [cargo]: format, clippy, tests planned per-crate by Forge's Cargo model
  3. # - [jobs.gitleaks]: required secret scan for public repository landings
  4. # - [jobs.release-linux]: static musl Linux release archives (`linux-amd64`,
  5. # `linux-arm64`) packaged as an OCI image index for Forge's release worker
  6. schema = 2
  7. [variables]
  8. CARGO_HOME = "$CI_PROJECT_DIR/.cache/forge-cargo"
  9. RUST_IMAGE = "$CLEYROP_REGISTRY/external/library/rust:1.100.0-slim-trixie@sha256:24516ae4487ab804e3db145c93f7240e58e225587ab9b7c62ea31a218727bf67"
  10. [cargo]
  11. workspace = ""
  12. checks = ["format", "clippy", "tests"]
  13. reads = ["crates:public", "rust:dist"]
  14. tests_reads = ["apt:debian"]
  15. tests_warm = ["target", ".cache/forge-cargo/registry"]
  16. [cargo.job]
  17. image = "$CLEYROP_REGISTRY/external/library/rust:1.100.0-slim-trixie@sha256:24516ae4487ab804e3db145c93f7240e58e225587ab9b7c62ea31a218727bf67"
  18. script = [
  19. "rustup component add clippy rustfmt",
  20. "{argv}",
  21. ]
  22. [cargo.tests]
  23. image = "$CLEYROP_REGISTRY/external/library/rust:1.100.0-slim-trixie@sha256:24516ae4487ab804e3db145c93f7240e58e225587ab9b7c62ea31a218727bf67"
  24. script = [
  25. "command -v git >/dev/null || (apt-get update -qq && apt-get install -y -qq --no-install-recommends git >/dev/null)",
  26. "{argv}",
  27. ]
  28. # Required secret scan for every change on a published repository (PUBLIC-FORGE.md §6.5).
  29. [jobs.gitleaks]
  30. inputs = ["**"]
  31. image = { name = "$CLEYROP_REGISTRY/external/zricethezav/gitleaks:v8.24.2@sha256:b5918eb91b8d2473cec722f066abb4352e4ffdc4ec9f4283ec143aba9ec9ebc4", entrypoint = [""] }
  32. script = [
  33. "gitleaks detect --source . --no-banner --redact --log-opts=HEAD",
  34. ]
  35. # Static Linux release archives (`linux-amd64`, `linux-arm64`) packaged as an
  36. # OCI image index (`application/vnd.forge.archive.v1`) and pushed by the agent
  37. # to the host's pool registry for Forge's public release worker
  38. # (PUBLIC-FORGE-RELEASES.md §4).
  39. [jobs.release-linux]
  40. inputs = [
  41. "Cargo.toml",
  42. "Cargo.lock",
  43. "rust-toolchain.toml",
  44. "LICENSE",
  45. "crates/**",
  46. "ci/binaries/linux/build-archives.sh",
  47. ]
  48. on = { runs = ["landing"], trust = ["protected"] }
  49. reads = ["crates:public", "rust:dist"]
  50. image = "$CLEYROP_REGISTRY/external/library/rust:1.100.0-slim-trixie@sha256:24516ae4487ab804e3db145c93f7240e58e225587ab9b7c62ea31a218727bf67"
  51. layout = "release/linux/oci"
  52. outputs = ["DOCKER_DESTINATION"]
  53. script = [
  54. "bash ci/binaries/linux/build-archives.sh $CI_COMMIT_SHA",
  55. ]
  56. [jobs.release-linux.variables]
  57. DOCKER_DESTINATION = "$CLEYROP_REGISTRY/public/roneo-release-linux"
  58. # Signed & notarised macOS arm64 binary built on Forge's macOS signing host (`forge-mac-1`).
  59. [jobs.binaries-macos]
  60. inputs = [
  61. "Cargo.toml",
  62. "Cargo.lock",
  63. "rust-toolchain.toml",
  64. "crates/**",
  65. "ci/binaries/macos/build.sh",
  66. ]
  67. on = { runs = ["landing"], trust = ["protected"] }
  68. detached = true
  69. allow_failure = true
  70. tags = ["platform:darwin/arm64"]
  71. resource_group = "macos-signing"
  72. image = "$CLEYROP_REGISTRY/external/library/rust:1.100.0-slim-trixie@sha256:24516ae4487ab804e3db145c93f7240e58e225587ab9b7c62ea31a218727bf67"
  73. outputs = ["roneo-macos.json"]
  74. inline = ["roneo-macos.json"]
  75. artifacts = { paths = ["roneo-macos.json"] }
  76. notarisations = "notarisations.json"
  77. script = ["bash ci/binaries/macos/build.sh $CI_COMMIT_SHA"]
  78. [jobs.binaries-macos.variables]
  79. FORGE_MACOS_POOL = "$CLEYROP_REGISTRY/forge-mac-binaries/roneo-binaries"
  80. FORGE_SIGNING = "keychain"
  81. FORGE_SIGNING_TEAM = "4SKW2Z97A2"
  82. FORGE_NOTARY_PROFILE = "forge-notary"
  83. [release]
  84. task = "release-linux"
  85. archives = ["linux-amd64", "linux-arm64"]