about summary refs log tree commit diff
path: root/.github/workflows/ci.yml
blob: ba34ef71aea139b34c54d2fdb697a9b5702896eb (plain) (blame)
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
name: "CI"

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

  # run additionally every week to catch
  # breakage due to package updates
  schedule:
    - cron: '23 23 * * 0'

jobs:
  nix-build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3.5.2
    - uses: cachix/install-nix-action@v20
      with:
        nix_path: nixpkgs=channel:nixos-unstable
    - uses: cachix/cachix-action@v12
      with:
        name: spacecookie
        authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
    - name: nix-build
      run: nix-build