summaryrefslogtreecommitdiff
path: root/mut/neovim/pack/plugins/start/blink.cmp/.github/workflows/nix.yaml
blob: 54086f130c6ac082090c8188abe34a9dc0f07d90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Test Nix

on:
  push:
  pull_request:

jobs:
  build:
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest]
    name: Test Nix Build on ${{ matrix.os }}
    runs-on: ${{ matrix.os }}
    permissions:
      contents: read
    steps:
      - uses: actions/checkout@v4
      - uses: DeterminateSystems/nix-installer-action@main
        with:
          extra-conf: |
            accept-flake-config = true

      - uses: DeterminateSystems/magic-nix-cache-action@main

      - name: Check the flake
        run: nix flake check

      - name: Build devshell
        run: nix develop --command "rustc"

      - name: Build the library
        run: nix build .#blink-fuzzy-lib

      - name: Build the plugin in nix
        run: nix build .#blink-cmp

      - name: Build the library (outside nix)
        run: nix run .#build-plugin