summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2020-10-15 21:11:28 +0200
committerJoel Rosdahl <joel@rosdahl.net>2020-10-15 21:32:24 +0200
commit2cbb40ba5319a075003da13772b2dec3f0fa21be (patch)
tree291401d2956a7f08cac5118f642892af67b0ed39
parentb333a952b15fef9df0c09ab11fb086f04289165c (diff)
downloadccache-2cbb40ba5319a075003da13772b2dec3f0fa21be.tar.gz
Use $GITHUB_PATH to set PATH from install-cuda
The ::set-env command is deprecated according to <https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/>.
-rw-r--r--.github/workflows/build.yaml2
-rwxr-xr-xci/install-cuda2
2 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 0c90161e..5ce3c7fd 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -173,7 +173,7 @@ jobs:
- name: Install CUDA
if: matrix.config.CUDA != ''
- run: sudo --preserve-env=CUDA ci/install-cuda
+ run: sudo --preserve-env=CUDA,GITHUB_PATH ci/install-cuda
env:
CUDA: ${{ matrix.config.CUDA }}
diff --git a/ci/install-cuda b/ci/install-cuda
index 97f098df..169f2a84 100755
--- a/ci/install-cuda
+++ b/ci/install-cuda
@@ -29,4 +29,4 @@ retry sudo apt-get clean
cuda_home=/usr/local/cuda-${CUDA:0:4}
$cuda_home/bin/nvcc --version
-echo "::set-env name=PATH::${cuda_home}/bin:${PATH}"
+echo "${cuda_home}/bin" >>$GITHUB_PATH