diff --git a/.github/workflows/_copilot-setup-steps.yml b/.github/workflows/_copilot-setup-steps.yml new file mode 100644 index 0000000..3255f83 --- /dev/null +++ b/.github/workflows/_copilot-setup-steps.yml @@ -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 diff --git a/.github/workflows/_nix-build.yml b/.github/workflows/_nix-build.yml index 465169b..4b62fb3 100644 --- a/.github/workflows/_nix-build.yml +++ b/.github/workflows/_nix-build.yml @@ -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: diff --git a/.github/workflows/_nix-validate.yml b/.github/workflows/_nix-validate.yml index 365327b..b405574 100644 --- a/.github/workflows/_nix-validate.yml +++ b/.github/workflows/_nix-validate.yml @@ -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: