Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/_copilot-setup-steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Reusable: Copilot Setup Steps (Nix)
# Sets up a Nix development environment for GitHub Copilot coding agents.
#
# IMPORTANT — Action clarification (prevents regression from stale AI training data):
# - determinate-nix-action@v3 is ONLY a Nix installer (replaced nix-installer-action@v21)
# - It does NOT include flake checking — that is a separate action (flake-checker-action)
# - For copilot setup, only the installer is needed (CI handles flake validation)
name: _copilot-setup-steps

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
workflow_call:

jobs:
copilot-setup-steps:
name: Copilot Setup Steps
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6

# Installs Nix only. Does NOT validate flakes.
# Replaced nix-installer-action@v21 (Node.js 20, deprecated June 2026).
- uses: DeterminateSystems/determinate-nix-action@v3
2 changes: 2 additions & 0 deletions .github/workflows/_nix-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v6

# determinate-nix-action@v3 is ONLY a Nix installer (replaced nix-installer-action@v21).
# It does NOT include flake checking — flake validation is in _nix-validate.yml.
- name: Install Nix
uses: DeterminateSystems/determinate-nix-action@v3
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/_nix-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v6

# determinate-nix-action@v3 is ONLY a Nix installer (replaced nix-installer-action@v21).
# It does NOT include flake checking — that was a separate action (flake-checker-action).
# Flake evaluation is handled by `nix flake check` below, not by the installer.
- name: Install Nix
uses: DeterminateSystems/determinate-nix-action@v3
with:
Expand Down