ci: add nix-build job
This commit is contained in:
parent
e962765f76
commit
9d16c4006c
|
@ -0,0 +1,13 @@
|
|||
name: Nix Build
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
jobs:
|
||||
nix-build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: cachix/install-nix-action@v20
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
- run: nix-build
|
|
@ -1,5 +1,6 @@
|
|||
{ pkgs ? import <nixpkgs> { }, lib ? pkgs.lib
|
||||
, buildGoModule ? pkgs.buildGoModule, }:
|
||||
{ pkgs ? import (fetchTarball
|
||||
"https://github.com/NixOS/nixpkgs/archive/4e9efd3432a9a1f50e81d70e13b38a330428bcca.tar.gz")
|
||||
{ }, lib ? pkgs.lib, buildGoModule ? pkgs.buildGoModule, }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "radiance";
|
||||
|
|
Loading…
Reference in New Issue