The ::set-env command is deprecated according to
<https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/>.
- 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 }}
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