nixos-config/.github/workflows/build.yml
2022-01-02 22:33:49 +08:00

20 lines
538 B
YAML

name: "Build and push to binary cache"
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v16
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v10
with:
name: foo-dogsquared
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build custom packages
run: nix shell nixpkgs#nix-build-uncached --command nix-build-uncached ./pkgs