2description: Enable Nix build path recording and upload recorded paths to an S3 binary cache.
6 description: "Operation to run: enable-recorder or upload."
9 description: AWS IAM role to assume before uploading Nix paths.
12 description: AWS region for the Nix cache upload role.
15 role-duration-seconds:
16 description: AWS role duration for the Nix cache upload role.
20 description: Private signing key for the Nix binary cache.
23 description: Nix S3 store URL used as the nix copy destination.
26 description: Number of parallel cache metadata queries (1 disables prefetch; maximum 128).
33 - name: Validate operation
36 OPERATION: ${{ inputs.operation }}
41 enable-recorder|upload) ;;
43 echo "Unsupported operation: $OPERATION" >&2
44 echo "Expected one of: enable-recorder, upload" >&2
49 - name: Enable Nix remote cache path recorder
50 if: ${{ inputs.operation == 'enable-recorder' }}
52 run: bash "$GITHUB_ACTION_PATH/enable-recorder.sh"
54 - name: Configure AWS credentials for Nix cache upload
55 if: ${{ inputs.operation == 'upload' }}
56 uses: aws-actions/configure-aws-credentials@v6
58 role-to-assume: ${{ inputs.aws-role-to-assume }}
59 aws-region: ${{ inputs.aws-region }}
60 role-duration-seconds: ${{ inputs.role-duration-seconds }}
62 - name: Upload built Nix paths to S3 cache
63 if: ${{ inputs.operation == 'upload' }}
66 NIX_CACHE_PRIVATE_KEY: ${{ inputs.cache-private-key }}
67 NIX_CACHE_S3_STORE_URL: ${{ inputs.cache-s3-store-url }}
68 NIX_CACHE_QUERY_JOBS: ${{ inputs.cache-query-jobs }}
69 run: bash "$GITHUB_ACTION_PATH/upload.sh"
71 - name: Clean up Nix S3 cache files
72 if: ${{ always() && inputs.operation == 'upload' }}
74 run: bash "$GITHUB_ACTION_PATH/cleanup.sh"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list