Skip to content

Commit

Permalink
try set nix verbosity and check nix log
Browse files Browse the repository at this point in the history
Signed-off-by: Thing-han, Lim <[email protected]>
  • Loading branch information
potsrevennil committed Oct 12, 2024
1 parent 25ecafa commit aa64957
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/actions/bench/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ inputs:
nix-cache:
description: Determine whether to enable nix cache
default: 'true'
nix-verbose:
description: Determine wether to suppress nix log or not
default: 'false'
custom_shell:
description: The shell to use. Only relevant if no nix-shell specified
default: "bash"
Expand All @@ -48,6 +51,7 @@ runs:
with:
nix-shell: ${{ inputs.nix-shell }}
nix-cache: ${{ inputs.nix-cache }}
nix-verbose: ${{ inputs.nix-verbose }}
custom_shell: ${{ inputs.custom_shell }}
script: |
ARCH=$(uname -m)
Expand Down
6 changes: 5 additions & 1 deletion .github/actions/setup-nix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ inputs:
cache:
description: Determine whether to enable nix cache
default: 'true'
verbose:
description: Determine wether to suppress nix log or not
default: 'false'

runs:
using: composite
Expand Down Expand Up @@ -59,7 +62,8 @@ runs:
shell: bash -leo pipefail {0}
run: |
echo NIX_SHELL="${{ inputs.devShell }}" >> $GITHUB_ENV
echo SHELL="$(which nix) develop --quiet .#${{ inputs.devShell }} -c bash -e {0}" >> $GITHUB_ENV
nix_extra_flags="${{ inputs.verbose == 'true' && '--quiet' || '' }}"
echo SHELL="$(which nix) develop $nix_extra_flags .#${{ inputs.devShell }} -c bash -e {0}" >> $GITHUB_ENV
- name: Prepare nix dev shell
shell: ${{ env.SHELL }}
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/bench_ec2_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ jobs:
with:
nix-shell: ci
nix-cache: false
nix-verbose: true
name: ${{ inputs.name }}
cflags: ${{ inputs.cflags }}
archflags: ${{ inputs.archflags }}
Expand Down

0 comments on commit aa64957

Please sign in to comment.