From 13279974d41cdc6988f6e7de2f2a8ade5cb79bc7 Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Tue, 3 Oct 2023 12:11:17 +0100 Subject: [PATCH] feat: add actions to build and cache artifacts --- .github/workflows/cache.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/cache.yml diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml new file mode 100644 index 0000000..b949e4e --- /dev/null +++ b/.github/workflows/cache.yml @@ -0,0 +1,15 @@ +on: + push: +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v20 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v12 + with: + name: ashhhleyyy + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: GC_DONT_GC=1 nix build --show-trace --log-lines 10000 --fallback '.#nixosConfigurations.alex.config.system.build.toplevel'