name: Build npc tests
on: [push]

jobs:
  npc-build:
    strategy:
      matrix:
        package: [ "flow", "flow-simlib"]
    runs-on: nix
    defaults:
      run:
        working-directory: ./npc
    steps:
      - uses: https://github.com/cachix/cachix-action@v14
        with:
          name: ysyx
          authToken: '${{ secrets.CACHIX_SIGNING_KEY }}'
      - uses: actions/checkout@v4
      - name: Build package
        run: |
          nix build -L .#${{ matrix.package }}