Use when a GitHub Actions workflow must build, test, or run code on a platform the GitHub-hosted runners do not offer -- FreeBSD, OpenBSD, NetBSD, DragonFlyBSD, GhostBSD, MidnightBSD, Solaris, OmniOS, OpenIndiana, Tribblix, Haiku, GNU Hurd, openEuler, or Android (BlissOS) -- or on a non-x86_64 arch (aarch64, riscv64, powerpc64, sparc64, loongarch64). Triggers on "test on FreeBSD/OpenBSD/Solaris/openEuler in CI", "run CI in a BSD VM", "vmactions", "freebsd-vm", a `uses: vmactions/<os>-vm` step, or "my action needs an OS the runner does not have".
Ships in vmactions-ci-workflow-skill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
GitHub-hosted runners only offer Ubuntu, Windows, and macOS. The vmactions/<os>-vm actions boot a QEMU VM of another OS on an ubuntu-latest runner, sync the checked-out repo into the VM, and run your commands inside it. Use them to add CI on a platform the runner does not provide.
All *-vm actions share one identical input interface (they are generated from a single source), so once you know one you know them all -- only the action name, default shell, and package manager differ per OS.
aarch64, riscv64, powerpc64, sparc64, loongarch64).When NOT to use: if Ubuntu/Windows/macOS runners already cover the target, use a normal matrix -- a VM is far slower. For maintaining the vmactions repos themselves, use the vmactions-maintenance skill instead.
The job always runs-on: ubuntu-latest (even for non-x86 arches -- QEMU emulates the guest arch). Always pin the major tag @v1.
name: Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
name: Test in FreeBSD
env:
MYTOKEN: ${{ secrets.MYTOKEN }}
steps:
- uses: actions/checkout@v7
- name: Test in FreeBSD
uses: vmactions/freebsd-vm@v1
with:
envs: 'MYTOKEN' # space-separated names of host envs to forward into the VM
cache-after-prepare: true # always set this -- see "Always cache the prepared VM"
prepare: |
pkg install -y curl
run: |
freebsd-version
uname -a
./configure && make && make test
prepare runs first (install deps as root), then run (your CI). The repo is mounted at the same path as on the host, run starts in that dir, and all GITHUB_* plus CI=true are forwarded automatically.
The VM images are minimal base installs -- no language toolchain (go, node, python, gcc, ...) is preinstalled. Install everything your CI needs in prepare. The exact package names differ per OS; copy them from the target repo's README example or that OS's package repo.
Forwarding a secret takes two parts -- envs only lists names, it cannot read secrets itself:
env: var on the host: env: { API_KEY: ${{ secrets.API_KEY }} }.envs: envs: 'API_KEY'. Multiple names are space-separated: envs: 'API_KEY DB_URL CI_TOKEN'.Miss step 1 and the variable silently arrives empty inside the VM.
Action name is vmactions/<os>-vm@v1. The matrix evolves, so confirm before writing: https://vmactions.org carries every OS-arch combination and the sync methods each one supports in a single table, and the target repo's README has that OS's exact release list and a runnable prepare example.
| Action | OS | Default login shell | Typical package install |
|---|---|---|---|
freebsd-vm | FreeBSD | tcsh (pre-14) | pkg install -y <p> |
ghostbsd-vm | GhostBSD | tcsh | pkg install -y <p> |
midnightbsd-vm | MidnightBSD | tcsh | mport install <p> |
dragonflybsd-vm | DragonFlyBSD | csh | pkg install -y <p> |
netbsd-vm | NetBSD | csh | /usr/sbin/pkg_add -u <p> |
openbsd-vm | OpenBSD | ksh | pkg_add <p> |
solaris-vm | Solaris | sh | pkg install <p> / pkgutil -y -i <p> |
omnios-vm | OmniOS | sh | pkg install <p> |
openindiana-vm | OpenIndiana | sh | pkg install <p> |
tribblix-vm | Tribblix | sh | zap install <p> |
haiku-vm | Haiku | sh | pkgman install -y <p> |
hurd-vm | GNU Hurd | bash | apt-get install -y <p> |
openeuler-vm | openEuler (Linux) | bash | dnf install -y <p> |
blissos-vm | BlissOS (Android) | mksh, no bash | no package manager |
The login shell column is only what you land in on an interactive ssh: prepare and run are always executed with sh on every OS, so write portable POSIX sh.
| Input | Purpose | Default |
|---|---|---|
run | CI commands to run in the VM | -- |
prepare | commands run before run (install deps as root) | -- |
envs | space-separated host env names to forward | none |
release | pick an OS version, e.g. "15.0" | repo default |
arch | aarch64, riscv64, powerpc64, sparc64, loongarch64, i386 (host stays x86 ubuntu) | x86_64 |
sync | rsync, sshfs, nfs, scp, or no -- supported set varies per OS+arch | first method listed for that OS+arch (rsync on most x86_64 -- but BlissOS x86_64 supports scp only) |
copyback | copy files back from VM to host (rsync/scp only) | true |
mem | VM memory in MB | 6144 |
cpu | VM cpu cores | all host cores |
nat | host->VM port forwards (YAML map) | none |
sync-time | sync VM clock via NTP | false |
disable-cache | disable apt/VM-image caching | false |
cache-after-prepare | cache the VM image again after prepare, so later runs skip it | false -- always set it to true |
debug-on-error | on failure, open a web VNC and wait | false |
custom-shell-name | name for the custom-shell wrapper (see below) | <os> |
Multi-step commands inside the VM -- instead of one big run, start the VM once then use shell: <os> {0} in later steps. The wrapper auto-cds into $GITHUB_WORKSPACE:
- name: Start VM
uses: vmactions/freebsd-vm@v1
with: { sync: nfs }
- name: Build
shell: freebsd {0} # = lowercase OS name; override with custom-shell-name
run: make
- name: Test
shell: freebsd {0}
run: make test
Non-x86 arch: set arch: and keep runs-on: ubuntu-latest. The supported sync methods vary per OS and arch -- the release table in each repo's README lists them in parentheses, first one = default. aarch64 generally has the full set incl. rsync; emulated arches on some OSes have a reduced set (e.g. FreeBSD riscv64/powerpc64 support only nfs,scp; NetBSD sparc64 has no rsync; openEuler riscv64 has no sshfs) -- omit sync: to get that arch's default, or pick one from the table. Non-x86 guests are fully emulated by QEMU, so they are much slower -- compile-heavy jobs (Go, Rust, C++) may run many times slower than native and can hit the default 6h step/job timeout. Set a generous timeout-minutes on the job and keep the workload small.
Always cache the prepared VM: set cache-after-prepare: true on every vmactions step you write. The action shuts the VM down after prepare, caches the prepared image, and later runs with the same prepare script restore it and skip prepare entirely -- turning a multi-minute package install into a cache restore on every subsequent run. The cache key hashes the prepare script and the sync method, so it self-invalidates when either changes; the source tree still syncs on every run. The action output cache-after-prepare-hit is true when the cache was restored.
This is the default choice, not an optimization to reach for later. Only leave it off when one of these actually applies:
prepare is empty (the option is ignored anyway), or disable-cache: true is set;prepare must re-run every time on purpose (e.g. it pulls a rolling snapshot and the job exists to catch upstream breakage);The tradeoff to state when proposing it: the first run gets slower (VM shutdown, image upload, second boot); every run after that is faster.
Port forward (NAT):
with:
nat: |
"8080": "80"
udp:"8081": "80"
run. prepare and run are always piped to sh in the guest, whatever that OS logs you into interactively -- so csh/tcsh syntax (setenv X y, set x = y) fails on FreeBSD/NetBSD, and bashisms ([[ ]], arrays, source) fail everywhere the guest sh is not bash.runs-on set to an arm runner for arch: aarch64. Keep ubuntu-latest; the guest arch is emulated by QEMU. ubuntu-*-arm runners are much slower.sync method on an emulated arch. Each repo README's release table lists the supported methods per arch in parentheses (first = default) -- e.g. FreeBSD riscv64 has no rsync/sshfs. When in doubt, omit sync: and let the action pick the arch default.envs. Host secrets/env are NOT forwarded unless named in the space-separated envs string (only GITHUB_* and CI are automatic).@v1 (or a full @v1.x.y), never an unpinned ref.cache-after-prepare. It defaults to false, so every run reinstalls the whole prepare toolchain from scratch. Set cache-after-prepare: true unless one of the documented exceptions applies.Each repo's README (e.g. vmactions/freebsd-vm) documents the exact release/arch matrix and a runnable example. The project home is https://vmactions.org . For deeper VM control outside CI (local QEMU, SSH, port-forward), see the anyvm skill.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/vmactions-ci-workflow-skill:vmactions-cifrom vmactions-ci-workflow-skill
vmactions-ci-workflow-skill@kjanat is listed by kjanat/agent-plugins — review the source before installing
npx claudepluginhub kjanat/agent-plugins --plugin vmactions-ci-workflow-skill