generated from Mohammad-gif/README
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nix.yml
29 lines (27 loc) · 903 Bytes
/
nix.yml
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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Nix
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.1
- name: Install Nix
uses: cachix/install-nix-action@95a8068e317b8def9482980abe762f36c77ccc99
- name: Install Cachix
- uses: cachix/cachix-action@490a246fbc7f92208d309eeb54383a4d828cedc1
with:
# Once you generate a binary cache on https://app.cachix.org, you'll need to insert the name of the cache here
name: mycache
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- name: Run nix-build
run: nix-build
- name: Check nix-shell works
run: nix-shell --run "echo OK"