Skip to content

Commit

Permalink
udpate README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Dec 18, 2023
1 parent db2ff1a commit ba76d68
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
32 changes: 20 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,34 @@ dagger mod install github.com/fluent-ci-templates/rust-pipeline@mod
| test | Run your tests |
| llvm_cov | Generate llvm coverage report |

```graphql
```typescript
build(
packageName: String,
src: String,
target: String
): String

clippy(src: String): String

test(src: String): String

llvmCov(src: String): String
src: string | Directory | undefined = ".",
packageName?: string,
target = "x86_64-unknown-linux-gnu",
options: string[] = []
): Promise<Directory | string>

clippy(
src: string | Directory | undefined = "."
): Promise<File | string>

test(
src: string | Directory | undefined = ".",
options: string[] = []
): Promise<string>

llvmCov(
src: string | Directory | undefined = "."
): Promise<File | string>
```

## Programmatic usage

You can also use this pipeline programmatically:

```ts
import { build, test } from "https://pkg.fluentci.io/rust_pipeline@v0.8.0/mod.ts";
import { build, test } from "https://pkg.fluentci.io/rust_pipeline@v0.8.1/mod.ts";

await test();
await build();
Expand Down
2 changes: 1 addition & 1 deletion ci.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
build,
test,
} from "https://pkg.fluentci.io/rust_pipeline@v0.8.0/mod.ts";
} from "https://pkg.fluentci.io/rust_pipeline@v0.8.1/mod.ts";

await test();
await build();

0 comments on commit ba76d68

Please sign in to comment.