-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathaction.yml
51 lines (43 loc) · 1.59 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: "Standard Discovery"
description: "Find out what to build & run in a Standard project."
author: "The Standard Authors"
inputs:
ffBuildInstructions:
required: false
default: false
description: |
Whether to fast forward build instruction (derivations).
If set to true, discovery will not populate the GH Action Cache
with the derviations that have been the result of the evaluation.
Instead, workers will be expected to connect to the state of the
discovery action (e.g. via ssh) and fetch precisely those
derivation closures needed. If the global set of derviaton grows
due to the number and nature of worker, this can help save on
upload time, restoration time and derviation packet size.
outputs:
hits:
value: ${{ steps.eval.outputs.json }}
description: "JSON object containing CI actions to run."
runs:
using: "composite"
steps:
- if: contains( runner.os, 'macos')
name: Install compatible bash 5+
shell: bash
run: |
nix profile install nixpkgs/nixpkgs-22.11-darwin#bash
- name: Discover
id: eval
env:
EVALSTORE_EXPORT: ${{ runner.temp }}/eval-store
OWNER_AND_REPO: ${{ github.repository }}
SHA: ${{ github.sha }}
SKIP_DRV_EXPORT: ${{ inputs.ffBuildInstructions }}
run: ${{ github.action_path }}/eval.sh
shell: bash
- uses: actions/cache/save@v4
id: cache
if: inputs.ffBuildInstructions == 'false'
with:
path: ${{ runner.temp }}/eval-store
key: drv-pack-${{ runner.os }}-${{ runner.arch }}-${{ github.sha }}