Skip to content

Commit

Permalink
fix(cid): enable s3 nix cache for test and release
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron Smith <[email protected]>
cameronraysmith committed Jun 30, 2024

Verified

This commit was signed with the committer’s verified signature.
cameronraysmith Cameron Smith
1 parent 102a3b5 commit a853056
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/cid.yaml
Original file line number Diff line number Diff line change
@@ -298,10 +298,20 @@ jobs:
# # Toggling use-gha-cache can help resolve `Nix daemon disconnected unexpectedly`.
# with:
# use-gha-cache: false
- uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # ratchet:cachix/cachix-action@v15
with:
name: "${{ vars.CACHIX_CACHE_NAME }}"
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
# - uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # ratchet:cachix/cachix-action@v15
# with:
# name: "${{ vars.CACHIX_CACHE_NAME }}"
# authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: "Authenticate to Google Cloud"
uses: "google-github-actions/auth@55bd3a7c6e2ae7cf1877fd1ccb9d54c0503c457c" # ratchet:google-github-actions/auth@v2
with:
credentials_json: "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_DATA }}"
- name: Set up remote cache
uses: zombiezen/setup-nix-cache-action@78efa9db5802d6a141bc42681edf000bf7f31a08 # ratchet:zombiezen/setup-nix-cache-action@v0
with:
substituters: "${{ vars.NIX_SUBSTITUTER }}"
secret_keys: "${{ secrets.NIX_PRIVATE_KEY }}"
use_nixcached: true
- uses: rlespinasse/github-slug-action@797d68864753cbceedc271349d402da4590e6302 # ratchet:rlespinasse/github-slug-action@v4
with:
prefix: CI_
@@ -482,10 +492,18 @@ jobs:
ref: ${{ needs.set-variables.outputs.checkout_ref }}
- uses: DeterminateSystems/nix-installer-action@7993355175c2765e5733dae74f3e0786fe0e5c4f # ratchet:DeterminateSystems/nix-installer-action@v12
# - uses: DeterminateSystems/magic-nix-cache-action@b46e247b898aa56e6d2d2e728dc6df6c84fdb738 # ratchet:DeterminateSystems/magic-nix-cache-action@v7
- uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # ratchet:cachix/cachix-action@v15
# - uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # ratchet:cachix/cachix-action@v15
# with:
# name: "${{ vars.CACHIX_CACHE_NAME }}"
# authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- uses: "google-github-actions/auth@55bd3a7c6e2ae7cf1877fd1ccb9d54c0503c457c" # ratchet:google-github-actions/auth@v2
with:
credentials_json: "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_DATA }}"
- uses: zombiezen/setup-nix-cache-action@78efa9db5802d6a141bc42681edf000bf7f31a08 # ratchet:zombiezen/setup-nix-cache-action@v0
with:
name: "${{ vars.CACHIX_CACHE_NAME }}"
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
substituters: "${{ vars.NIX_SUBSTITUTER }}"
secret_keys: "${{ secrets.NIX_PRIVATE_KEY }}"
use_nixcached: true
- run: nix profile install .#releaseEnv
- uses: cihelper/action-semanticrelease-poetry@66900ba780321bcdb974891ee82f945a25a870d7 # ratchet:cihelper/action-semanticrelease-poetry@v1
id: semanticrelease

0 comments on commit a853056

Please sign in to comment.