بنقرة واحدة
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 ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| 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.