Something went wrong. Try again.
A collection of +180 reusable WebAssembly modules for building composable CI/CD pipelines with FluentCI fluentci.io/modules
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041-- Generated by Gleam CI helpers.module CI.Component (setup, nixBuild, save, restore) where
import Data.Maybe (Maybe)import Effect (Effect)import CI.Cache as Native
-- | Configure a FluentCI cache protocol using required environment credentials.-- | @param protocol Cache protocol to configure. Allowed values: nix, bazel, bazel-grpc, turbo, nx, buildkit, sccache, go, gradle, maven, generic.-- | @param url HTTPS account base URL; overrides FLUENTCI_CACHE_URL. One of this argument or the environment variable is required.-- | @param configDir Fresh output directory; defaults to .fluentci/cache/PROTOCOL. Existing directories are rejected.-- | @param repository BuildKit repository and tag. Default: "buildkit/default:cache".setup :: { protocol :: String, url :: Maybe String, configDir :: Maybe String, repository :: Maybe String } -> Effect Native.SetupResultsetup args = do Native.setup args
-- | Build a Nix installable while reusing and publishing signed FluentCI cache outputs.-- | @param url HTTPS account base URL; overrides FLUENTCI_CACHE_URL. One of this argument or the environment variable is required.-- | @param flake Nix installable to build. Default: ".#default".nixBuild :: { url :: Maybe String, flake :: Maybe String } -> Effect ({ outcome :: String })nixBuild args = do Native.nixBuild args
-- | Compress and upload a file or directory to the generic HTTP cache.-- | @param key Safe slash-separated cache key.-- | @param path File or directory to cache.-- | @param url HTTPS account base URL; overrides FLUENTCI_CACHE_URL. One of this argument or the environment variable is required.-- | @param compression Archive compression; restore detects it automatically. Default: "zstd". Allowed values: zstd, gzip, none.save :: { key :: String, path :: String, url :: Maybe String, compression :: Maybe String } -> Effect Native.TransferResultsave args = do Native.save args
-- | Download, verify and restore a generic HTTP cache entry without replacing files on failure.-- | @param key Safe slash-separated cache key.-- | @param path Destination file or directory; cannot be the current directory or filesystem root.-- | @param url HTTPS account base URL; overrides FLUENTCI_CACHE_URL. One of this argument or the environment variable is required.-- | @param required Fail if the cache key is missing; otherwise return hit=false. Default: false.restore :: { key :: String, path :: String, url :: Maybe String, required :: Maybe Boolean } -> Effect Native.TransferResultrestore args = do Native.restore args