Skip to main content

Buck

Buck2 is a build system developed and used by Meta. It encourages the creation of small, reusable modules consisting of code and resources, and supports a variety of languages on many platforms.

🚀 Usage​

Add the following command to your CI configuration file:

fluentci run --wasm buck test //...
fluentci run --wasm buck build //...

Commands​

NameDescription
setupInstall Buck.
buildBuild the project.
testRun the tests.

Code Examples​

Add fluentci-pdk crate to your Cargo.toml:

[dependencies]
fluentci-pdk = "0.2.1"

Use the following code to call a module function:

use fluentci_pdk::dag;

// ...

dag().call("https://pkg.fluentci.io/[email protected]?wasm=1", "build", vec!["//..."])?;

CI/CD Integration​

The following example shows how to integrate FluentCI with popular CI providers to build and test your Buck project using Buck Plugin:

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/testout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: buck
args: |
test //...
build //...