From def425ed3258a3e13cf1bfef87dc346dc3f31df0 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 5 Feb 2021 23:10:50 +0100 Subject: [PATCH] github: setup Actions with cachix --- .github/workflows/cachix.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/cachix.yml diff --git a/.github/workflows/cachix.yml b/.github/workflows/cachix.yml new file mode 100644 index 0000000..f7bcbaa --- /dev/null +++ b/.github/workflows/cachix.yml @@ -0,0 +1,18 @@ +name: "Build everything and push to cachix" +on: + push: + branches: + - main +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: cachix/install-nix-action@v12 + with: + nix_path: nixpkgs=channel:nixos-20.09-small + - uses: cachix/cachix-action@v8 + with: + name: alarsyo + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: nix-build -E 'let pkgs = import { overlays = import ./overlays; }; in pkgs.bitwarden_rs-postgresql'