Skip to content

Build, test and publish

Build and run a worker

virtufin-worker build HttpGet                  # add --native for managed + native
virtufin-worker publish HttpGet                # CI does this on push to master
virtufin-worker create HttpGet --context local

virtufin-worker is in common's virtufin-dev package; see the CLI reference.

Trigger it by publishing a CloudEvent on wrk.httpget.command.<worker_id> whose data is {"url": "https://example.com/data"}. See Getting Started.

Build pipeline

Workers are built and published with virtufin-worker from common's virtufin-dev package (see the CLI reference); the repo keeps no build scripts of its own:

virtufin-worker build HttpGet            # managed only
virtufin-worker build HttpGet --native   # managed + NativeAOT in one nupkg (requires Docker)
virtufin-worker build Hello              # Python worker wheel