Skip to content

Commit

Permalink
Add shell
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhan committed Sep 2, 2023
1 parent 2052587 commit 4c50b27
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/actions/set-build-env/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ runs:
method: network
- name: Show bin, include, lib (NVIDIA, Linux)
if: ${{ !startsWith(inputs.case.os, 'windows') && inputs.case.source == 'nvidia' }}
shell: bash
run: |
tree ${CUDA_PATH}/bin
tree ${CUDA_PATH}/include
tree ${CUDA_PATH}/lib64
- name: Install LLVM ${{ inputs.case.toolchain-version }}
if: ${{ !startsWith(inputs.case.os, 'windows') && inputs.case.toolchain == 'llvm' }}
shell: bash
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
Expand All @@ -40,6 +42,7 @@ runs:
method: network
- name: Install CUDA (Ubuntu)
if: ${{ !startsWith(inputs.case.os, 'windows') && inputs.case.source == 'ubuntu' }}
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y nvidia-cuda-dev=${{ inputs.case.cuda-version }} nvidia-cuda-toolkit=${{ inputs.case.cuda-version }} gcc-9 g++-9
Expand All @@ -57,10 +60,12 @@ runs:
method: network
- name: Show bin, include, lib64 (Windows)
if: ${{ startsWith(inputs.case.os, 'windows') }}
shell: pwsh
run: |
tree /F $env:CUDA_PATH/bin
tree /F $env:CUDA_PATH/include
tree /F $env:CUDA_PATH/lib/x64
- name: Set Visual Studio Environment (Windows)
if: ${{ startsWith(inputs.case.os, 'windows') }}
shell: pwsh
run: .github/actions/Set-VSEnv.ps1 2019

0 comments on commit 4c50b27

Please sign in to comment.