Skip to content

Commit

Permalink
feat: add set cuda path action (#205)
Browse files Browse the repository at this point in the history
* feat: add set cuda path action

Signed-off-by: Daisuke Nishimatsu <[email protected]>

* use upper case for cuda in normal sentence

Co-authored-by: Kenji Miyake <[email protected]>

* style(pre-commit): autofix

* remove unused lines

Co-authored-by: Kenji Miyake <[email protected]>

* use upper case for cuda in normal sentence

Co-authored-by: Kenji Miyake <[email protected]>

* fix style

Signed-off-by: Daisuke Nishimatsu <[email protected]>

---------

Signed-off-by: Daisuke Nishimatsu <[email protected]>
Co-authored-by: Kenji Miyake <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 5, 2023
1 parent 1ae1a74 commit 6d0a13d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
26 changes: 26 additions & 0 deletions set-cuda-path/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# set-cuda-path

This action set the CUDA path into GITHUB_ENV amd GITHUB_PATH.

## Usage

```yaml
jobs:
set-cuda-path:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Set CUDA path
id: set-cuda-path
uses: autowarefoundation/autoware-github-actions/set-cuda-path@v1
```
## Inputs
None.
## Outputs
None.
13 changes: 13 additions & 0 deletions set-cuda-path/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: set-cuda-path
description: ""

runs:
using: composite
steps:
- name: Set CUDA path
run: |
CUDA_PATH=/usr/local/cuda
echo "CUDA_PATH=${CUDA_PATH}" >> $GITHUB_ENV
echo "${CUDA_PATH}/bin" >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=${CUDA_PATH}/lib:${LD_LIBRARY_PATH}" >> $GITHUB_ENV
shell: bash

0 comments on commit 6d0a13d

Please sign in to comment.