Skip to content

Commit

Permalink
expose nix-cache interface for functest actions
Browse files Browse the repository at this point in the history
Signed-off-by: Thing-han, Lim <15379156+potsrevennil@users.noreply.github.com>
  • Loading branch information
potsrevennil committed Oct 12, 2024
1 parent f918717 commit 83550d9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/actions/bench/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ inputs:
nix-shell:
description: Run in the specified Nix environment if exists
default: "ci"
nix-cache:
description: Determine whether to enable nix cache
default: 'true'
custom_shell:
description: The shell to use. Only relevant if no nix-shell specified
default: "bash"
Expand All @@ -44,6 +47,7 @@ runs:
- uses: ./.github/actions/setup-shell
with:
nix-shell: ${{ inputs.nix-shell }}
nix-cache: ${{ inputs.nix-cache }}
custom_shell: ${{ inputs.custom_shell }}
script: |
ARCH=$(uname -m)
Expand Down
4 changes: 4 additions & 0 deletions .github/actions/functest/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ inputs:
nix-shell:
description: Run in the specified Nix environment if exists
default: "ci"
nix-cache:
description: Determine whether to enable nix cache
default: 'true'
custom_shell:
description: The shell to use. Only relevant if no nix-shell specified
default: "bash"
Expand Down Expand Up @@ -55,6 +58,7 @@ runs:
uses: ./.github/actions/setup-shell
with:
nix-shell: ${{ inputs.nix-shell }}
nix-cache: ${{ inputs.nix-cache }}
custom_shell: ${{ inputs.custom_shell }}
script: |
# only summary on the first time
Expand Down
5 changes: 5 additions & 0 deletions .github/actions/multi-functest/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ inputs:
custom_shell:
description: The shell to use. Only relevant if no nix-shell specified
default: "bash"
nix-cache:
description: Determine whether to enable nix cache
default: 'true'
cflags:
description: CFLAGS to pass to compilation
default: ""
Expand All @@ -36,6 +39,7 @@ runs:
uses: ./.github/actions/functest
with:
nix-shell: ${{ inputs.nix-shell }}
nix-cache: ${{ inputs.nix-cache }}
custom_shell: ${{ inputs.custom_shell }}
cflags: ${{ inputs.cflags }}
mode: native
Expand All @@ -48,6 +52,7 @@ runs:
uses: ./.github/actions/functest
with:
nix-shell: ${{ inputs.nix-shell }}
nix-cache: ${{ inputs.nix-cache }}
custom_shell: ${{ inputs.custom_shell }}
cflags: ${{ inputs.cflags }}
mode: native
Expand Down

0 comments on commit 83550d9

Please sign in to comment.