Skip to content

Commit daf26ad

Browse files
committed
try not to hang
1 parent fffe85c commit daf26ad

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/actions/fetch_ctk/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ inputs:
1919
type: string
2020
default: "cuda_nvcc,cuda_cudart,cuda_nvrtc,cuda_profiler_api,cuda_cccl,cuda_sanitizer_api,libnvjitlink"
2121

22+
defaults:
23+
run:
24+
shell: bash ${{ (inputs.host-platform != 'win-64' && '--noprofile --norc') || '' }} -xeuo pipefail {0}
25+
2226
runs:
2327
using: composite
2428
steps:
2529
- name: Set up CTK cache variable
26-
shell: bash --noprofile --norc -xeuo pipefail {0}
2730
run: |
2831
HASH=$(echo -n "${{ inputs.cuda-components }}" | sha256sum | awk '{print $1}')
2932
echo "CTK_CACHE_KEY=mini-ctk-${{ inputs.cuda-version }}-${{ inputs.host-platform }}-$HASH" >> $GITHUB_ENV
@@ -48,7 +51,6 @@ runs:
4851

4952
- name: Get CUDA components
5053
if: ${{ steps.ctk-get-cache.outputs.cache-hit != 'true' }}
51-
shell: bash --noprofile --norc -xeuo pipefail {0}
5254
run: |
5355
CUDA_PATH="./cuda_toolkit"
5456
mkdir $CUDA_PATH
@@ -126,7 +128,6 @@ runs:
126128

127129
- name: Restore CTK cache
128130
if: ${{ steps.ctk-get-cache.outputs.cache-hit == 'true' }}
129-
shell: bash --noprofile --norc -xeuo pipefail {0}
130131
run: |
131132
ls -l
132133
CUDA_PATH="./cuda_toolkit"
@@ -137,7 +138,6 @@ runs:
137138
fi
138139
139140
- name: Set output environment variables
140-
shell: bash --noprofile --norc -xeuo pipefail {0}
141141
run: |
142142
CUDA_PATH=$(realpath "./cuda_toolkit")
143143
echo "CUDA_PATH=${CUDA_PATH}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)