From de74f066c27a75cfbca54d0a734be439f0cf52a3 Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Fri, 21 Apr 2023 13:07:15 -0700 Subject: [PATCH 1/4] chore: Add cachix action for uploading binary cache artifacts --- .github/workflows/nix.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 91da25315c..50df1727dc 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -2,8 +2,6 @@ name: Nix builds on: push: - branches: - - phated/** schedule: - cron: "0 2 * * *" # run at 2 AM UTC workflow_dispatch: @@ -32,6 +30,13 @@ jobs: nix_path: nixpkgs=channel:nixos-22.11 github_access_token: ${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v12 + with: + # TODO: Setup a cache with this name + name: barretenberg-cache + # TODO: Add this token to secrets + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - name: Check nix flake run: | nix flake check From b7e0dc7e138c774ff1bf387ed099955925ac4243 Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Fri, 21 Apr 2023 13:08:38 -0700 Subject: [PATCH 2/4] Only run the nix action on master --- .github/workflows/nix.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 50df1727dc..f092c15f3a 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -2,6 +2,8 @@ name: Nix builds on: push: + branches: + - master schedule: - cron: "0 2 * * *" # run at 2 AM UTC workflow_dispatch: From c59650fbbd9d2cd0863ab0afd80dd13603776527 Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Mon, 24 Apr 2023 06:46:52 -0700 Subject: [PATCH 3/4] run on my branch and remove todos --- .github/workflows/nix.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index f092c15f3a..acd5802ad4 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -4,6 +4,7 @@ on: push: branches: - master + - phated/* schedule: - cron: "0 2 * * *" # run at 2 AM UTC workflow_dispatch: @@ -34,9 +35,7 @@ jobs: - uses: cachix/cachix-action@v12 with: - # TODO: Setup a cache with this name - name: barretenberg-cache - # TODO: Add this token to secrets + name: barretenberg authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - name: Check nix flake From 52d7fbd62a4a54439c6021516d89468a1573f322 Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Mon, 24 Apr 2023 07:15:25 -0700 Subject: [PATCH 4/4] Remove running on my branch --- .github/workflows/nix.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index acd5802ad4..40c37ad659 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -4,7 +4,6 @@ on: push: branches: - master - - phated/* schedule: - cron: "0 2 * * *" # run at 2 AM UTC workflow_dispatch: