Skip to content

Merge pull request #26 from josh/renovate/lock-file-maintenance #119

Merge pull request #26 from josh/renovate/lock-file-maintenance

Merge pull request #26 from josh/renovate/lock-file-maintenance #119

Workflow file for this run

name: Nix
on:
push:
workflow_dispatch:
env:
NIX_ABORT_ON_WARN: "1"
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
system:
- "x86_64-linux"
- "aarch64-linux"
steps:
- uses: actions/checkout@v4
- if: matrix.system == 'aarch64-linux'
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
system = ${{ matrix.system }}
accept-flake-config = true
allow-import-from-derivation = false
- run: |
nix config show | grep allow-import-from-derivation
- uses: cachix/cachix-action@v15
with:
name: lazy-nvim-nix
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- uses: DeterminateSystems/flake-checker-action@v9
- name: Check flake
run: |
nix flake check
checks:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
check:
- checkhealth
- startuptime
- lazyvim-plugins-json
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v15
with:
name: lazy-nvim-nix
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Run check
run: |
nix build .#checks.x86_64-linux.${{ matrix.check }}
- name: Add to summary
run: |
(
echo '```'
cat result
echo '```'
) | tee "$GITHUB_STEP_SUMMARY"