Skip to content

Commit

Permalink
Update way to set environment variable PATH in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
cosminc98 committed Jan 27, 2024
1 parent 2614c92 commit 27b045b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ jobs:
sudo apt install -y wget
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update
sudo apt-get -y install cuda-toolkit-12-3
echo "PATH=\"\$PATH:/usr/local/cuda/bin\"" >> ~/.bashrc
sudo apt update
sudo apt -y install cuda-toolkit-12-3
echo "PATH=$PATH:/usr/local/cuda/bin" >> $GITHUB_ENV
- name: Install OpenCV
run: |
Expand Down Expand Up @@ -76,9 +76,9 @@ jobs:
sudo apt install -y wget
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update
sudo apt-get -y install cuda-toolkit-12-3
echo "PATH=\"\$PATH:/usr/local/cuda/bin\"" >> ~/.bashrc
sudo apt update
sudo apt -y install cuda-toolkit-12-3
echo "PATH=$PATH:/usr/local/cuda/bin" >> $GITHUB_ENV
- name: Install OpenCV
run: |
Expand Down

0 comments on commit 27b045b

Please sign in to comment.