summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yaml
blob: 054e4a3a889c24942b82a8ff2dece4be9b922202 (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: CI

on:
  push:
    branches: [main]
    paths:
      - "**.nix"
      - ".github/workflows/ci.yaml"
  pull_request:
    paths:
      - "**.nix"
      - ".github/workflows/ci.yaml"
  workflow_dispatch:

jobs:
  build:
    name: Build

    strategy:
      matrix:
        include:
          - os: ubuntu-latest
            system: x86_64-linux

    runs-on: ${{ matrix.os }}

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Install Nix
        uses: cachix/install-nix-action@v30
        with:
          nix_path: nixpkgs=channel:nixos-unstable

      - name: Run build
        run: |
          nix-build release.nix -A ${{ matrix.system }}