From 7911056a5192c0cc21b890a63011e26655627352 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sun, 5 Feb 2023 16:59:06 +0300 Subject: [PATCH] feat: binary cache --- .github/workflows/cachix.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..482ead3 --- /dev/null +++ b/.github/workflows/cachix.yml @@ -0,0 +1,35 @@ +name: build-and-cache + +"on": + - push + - workflow_dispatch + +jobs: + build-linux: + runs-on: ubuntu-latest + steps: + - uses: easimon/maximize-build-space@v6 + with: + overprovision-lvm: true + remove-android: true + remove-dotnet: true + remove-haskell: true + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v18 + with: + extra_nix_config: access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v12 + with: + authToken: ${{ secrets.CACHIX_TOKEN }} + extraPullNames: nix-community + name: neovim-flake + - name: Set default git branch (to reduce log spam) + run: git config --global init.defaultBranch main + - name: Validate Flakes + run: nix flake check + - name: Build declared flake packages + run: |- + nix build '.#tidal' + nix build '.#nix' + nix build '.#isMaximal'