一键导入
nix-ci
Use this when setting up CI for a GitHub repository — offers GitHub Actions or Vira depending on the project
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use this when setting up CI for a GitHub repository — offers GitHub Actions or Vira depending on the project
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
| name | nix-ci |
| description | Use this when setting up CI for a GitHub repository — offers GitHub Actions or Vira depending on the project |
When the user asks to set up CI, use the Ask tool to prompt them to choose:
Use the install-nix action (avoid DetSys actions) and invoke Vira to build:
# .github/workflows/ci.yml
name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: nixbuild/nix-quick-install-action@v34
- run: nix profile install github:juspay/vira
- run: vira ci
Vira is already running and pointed at the repo. Create a vira.hs file in the repo root to configure the build pipeline.
Before generating vira.hs, you MUST fetch and read https://vira.nixos.asia/config to understand the exact DSL format. Do not guess the syntax.
vira.hssignoff.enable = Trueflake.nix files exist (e.g., in subdirectories), add all of them to build.flakes with appropriate overrideInputs settingscache.url = Nothing with a comment -- TODO: configure Attic cache URLbuild.systems should be set to ["x86_64-linux", "aarch64-darwin"] for multi-platform buildsAfter creating vira.hs, run vira ci -b to verify the configuration.