Skip to content

A ready-to-use CI/CD Pipeline for Swift projects.

License

Notifications You must be signed in to change notification settings

fluent-ci-templates/swift-pipeline

Repository files navigation

Swift Pipeline

fluentci pipeline deno compatibility dagger-min-version ci

A ready-to-use Pipeline for your Swift projects.

🚀 Usage

Run the following command in your project:

fluentci run swift_pipeline

Or, if you want to use it as a template:

fluentci init -t swift

This will create a .fluentci folder in your project.

Now you can run the pipeline with:

fluentci run .

🧩 Dagger Module

Use as a Dagger module:

dagger install github.com/fluent-ci-templates/swift-pipeline@main

Call a function from the module:

dagger -m github.com/fluent-ci-templates/swift-pipeline@main call \
  test --src .

dagger -m github.com/fluent-ci-templates/swift-pipeline@main call \
  build --src .

🛠️ Environment variables

Variable Description
SWIFT_VERSION The version of Swift to use. Defaults to 5.8

✨ Jobs

Job Description
test Run tests
build Build project
build(
  src: Directory | string | undefined = "."
): Promise<Directory | string>
test(
  src: Directory | string | undefined = "."
): Promise<string>

👨‍💻 Programmatic usage

You can also use this pipeline programmatically:

import { test, build } from "jsr:@fluentci/swift";

await test();
await build();