Skip to content

Commit

Permalink
.github/workflows: set up Nix cache
Browse files Browse the repository at this point in the history
  • Loading branch information
zombiezen committed Dec 4, 2023
1 parent 0f2eb4f commit a91f279
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,20 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Authenticate to Google Cloud Platform
uses: google-github-actions/auth@v1
with:
workload_identity_provider: ${{ vars.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ vars.GOOGLE_SERVICE_ACCOUNT }}
token_format: access_token
- name: Install Nix
uses: cachix/install-nix-action@v22
- name: Set up cache
uses: zombiezen/[email protected]
with:
substituters: ${{ vars.SUBSTITUTER }}
secret_keys: ${{ secrets.NIX_PRIVATE_KEY }}
use_nixcached: true
- name: Run tests
run: nix flake check
- name: Build binary
Expand All @@ -44,8 +56,20 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Authenticate to Google Cloud Platform
uses: google-github-actions/auth@v1
with:
workload_identity_provider: ${{ vars.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }}
service_account: ${{ vars.GOOGLE_SERVICE_ACCOUNT }}
token_format: access_token
- name: Install Nix
uses: cachix/install-nix-action@v22
- name: Set up cache
uses: zombiezen/[email protected]
with:
substituters: ${{ vars.SUBSTITUTER }}
secret_keys: ${{ secrets.NIX_PRIVATE_KEY }}
use_nixcached: true
- name: Run tests
run: nix flake check
- name: Build binary
Expand Down

0 comments on commit a91f279

Please sign in to comment.