]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Use $GITHUB_PATH to set PATH from install-cuda
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 15 Oct 2020 19:11:28 +0000 (21:11 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 15 Oct 2020 19:32:24 +0000 (21:32 +0200)
The ::set-env command is deprecated according to
<https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/>.

.github/workflows/build.yaml
ci/install-cuda

index 0c90161e6da163aaeac7be2c1b1e726c6d4538fe..5ce3c7fd41ca9e2f6b9dd791433a60b9c5eb2edc 100644 (file)
@@ -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 }}
 
index 97f098dff1d106ea593e31ee69e329bb5a496c3d..169f2a844e6a990e5f41ea2983362962c0a18b86 100755 (executable)
@@ -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