A ready-to-use Pipeline for your Swift projects.
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 .
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 .
Variable | Description |
---|---|
SWIFT_VERSION |
The version of Swift to use. Defaults to 5.8 |
Job | Description |
---|---|
test | Run tests |
build | Build project |
build(
src: Directory | string | undefined = "."
): Promise<Directory | string>
test(
src: Directory | string | undefined = "."
): Promise<string>
You can also use this pipeline programmatically:
import { test, build } from "jsr:@fluentci/swift";
await test();
await build();