Skip to content

Instantly share code, notes, and snippets.

@zimbatm
Created December 7, 2020 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zimbatm/fee82edaf46286cb967aeca9552f2d2d to your computer and use it in GitHub Desktop.
Save zimbatm/fee82edaf46286cb967aeca9552f2d2d to your computer and use it in GitHub Desktop.
on: [ push ]
jobs:
nix:
name: 'Nix'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-10.15
- ubuntu-20.04
steps:
- uses: actions/checkout@v2
# Install nix on the runner
- uses: cachix/install-nix-action@v12
with:
extra_nix_config: |
sandbox = relaxed
log-lines = 1000
- uses: cachix/cachix-action@v8
with:
name: nix-community
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- name: Pull nix-build-uncached
run: nix-build nix -A nix-build-uncached
- name: Build release
run: result/bin/nix-build-uncached ./nix/release.nix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment