name: Dead Nix ‚ùÑÔ∏è Analysis üîçÔ∏è

on:
  pull_request:
    branches:
      - master

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

jobs:
  deadnix:
    strategy:
      matrix:
        os:
          # - macos-13 # x86_64-darwin
          # - macos-latest # aarch64-darwin
          - ubuntu-latest # x86_64-linux

    name: Dead Nix Analysis
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v4
        with:
          ref: ${{ github.head_ref }}

      - uses: DeterminateSystems/nix-installer-action@v14
      - uses: DeterminateSystems/magic-nix-cache-action@v8
      - uses: astro/deadnix-action@v1
