Skip to content

Commit 6cf04de

Browse files
ci(e2e): push test runner builds to Cachix
E2E Suites set up Nix without a Cachix token, so every job rebuilt openshell-test-runner from source. Accept an optional CACHIX_AUTH_TOKEN secret, pass it to setup-nix, and pass it from Branch E2E, as Branch Checks and the binary builds already do. Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
1 parent b60c028 commit 6cf04de

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/branch-e2e.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ jobs:
316316
with:
317317
source-sha: ${{ needs.prepare-integration.outputs.source_sha }}
318318
integration-inputs-artifact-id: ${{ needs.prepare-integration.outputs.integration_inputs_artifact_id }}
319+
secrets:
320+
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
319321

320322
docker-e2e:
321323
needs: [pr_metadata, build-binaries, build-images]

‎.github/workflows/e2e-suites.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ on:
2020
description: Immutable ID of the prepared integration inputs artifact
2121
required: true
2222
type: string
23+
secrets:
24+
CACHIX_AUTH_TOKEN:
25+
description: Token used to push Nix builds, such as the test runner, to Cachix
26+
required: false
2327

2428
permissions:
2529
actions: read
@@ -66,6 +70,8 @@ jobs:
6670
exec 3>&-
6771
6872
- uses: ./.github/actions/setup-nix
73+
with:
74+
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
6975

7076
- name: Cache tmachine disks
7177
uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0

0 commit comments

Comments
 (0)