ci: Replace seed cachix workflow with new daemon mode

cachix-action v14 added a new daemon mode, which pushes new derivations to the store
as soon as they have been built. This replaces the seed cachix workflow nicely by just
pushing from all jobs directly.
This commit is contained in:
Wolfgang Walther
2024-02-06 10:20:02 +01:00
parent 74d8ddec36
commit 868913d179
2 changed files with 10 additions and 72 deletions
+10
View File
@@ -26,6 +26,7 @@ jobs:
- name: Setup Nix Environment
uses: ./.github/actions/setup-nix
with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
cache-id: common
tools: style withTools memory tests release postgrestPackage
@@ -38,6 +39,7 @@ jobs:
- name: Setup Nix Environment
uses: ./.github/actions/setup-nix
with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
tools: style
cache-id: common
- name: Run linter (check locally with `nix-shell --run postgrest-lint`)
@@ -60,6 +62,7 @@ jobs:
- name: Setup Nix Environment
uses: ./.github/actions/setup-nix
with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
tools: tests
cache-id: common
@@ -97,6 +100,7 @@ jobs:
- name: Setup Nix Environment
uses: ./.github/actions/setup-nix
with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
tools: tests withTools
cache-id: common
@@ -118,6 +122,7 @@ jobs:
- name: Setup Nix Environment
uses: ./.github/actions/setup-nix
with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
tools: memory
cache-id: common
- name: Run memory tests
@@ -131,6 +136,8 @@ jobs:
- uses: actions/checkout@v4
- name: Setup Nix Environment
uses: ./.github/actions/setup-nix
with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build static executable
run: nix-build -A postgrestStatic
@@ -157,6 +164,8 @@ jobs:
- uses: actions/checkout@v4
- name: Setup Nix Environment
uses: ./.github/actions/setup-nix
with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build everything
run: |
@@ -469,6 +478,7 @@ jobs:
- name: Setup Nix Environment
uses: ./.github/actions/setup-nix
with:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
tools: release
- name: Download Docker image
uses: actions/download-artifact@v4