From f8055c3dad0d64a993ebb07ada51b96a386d6153 Mon Sep 17 00:00:00 2001 From: Raul Date: Fri, 14 Apr 2023 11:26:38 +0200 Subject: [PATCH] Use Ubuntu-22 instead of deprecated Ubuntu 18 in CI (#105) * Use Ubuntu-latest instead of deprecated Ubuntu 18 in CI * Update cuda-toolkit action to 0.2.10 Change to Ubuntu 22.04 * Change to Ubuntu 20.04 * Add override to cuda install. Go back to Ubuntu 22.04 * Rename conda env to ubuntu 22 --- .github/workflows/CI.yml | 7 ++++--- .../{build-ubuntu-18.04.yml => build-ubuntu-22.04.yml} | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) rename devtools/conda-envs/{build-ubuntu-18.04.yml => build-ubuntu-22.04.yml} (96%) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 03041b9a..75de4b2a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -25,7 +25,7 @@ jobs: # Oldest supported versions # NOTE: renable CUDA 10.2 when it supported by NNPOps (https://github.com/conda-forge/nnpops-feedstock/pull/8) - name: Linux (CUDA 11.0, Python 3.7, PyTorch 1.11) - os: ubuntu-18.04 + os: ubuntu-22.04 cuda-version: "11.0.3" gcc-version: "8.5.*" nvcc-version: "11.0" @@ -34,7 +34,7 @@ jobs: # Latest supported versions - name: Linux (CUDA 11.2, Python 3.10, PyTorch 1.12) - os: ubuntu-18.04 + os: ubuntu-22.04 cuda-version: "11.2.2" gcc-version: "10.3.*" nvcc-version: "11.2" @@ -55,9 +55,10 @@ jobs: uses: actions/checkout@v2 - name: "Install CUDA Toolkit on Linux (if needed)" - uses: Jimver/cuda-toolkit@v0.2.5 + uses: Jimver/cuda-toolkit@v0.2.10 with: cuda: ${{ matrix.cuda-version }} + linux-local-args: '["--toolkit", "--override"]' if: startsWith(matrix.os, 'ubuntu') - name: "Install SDK on MacOS (if needed)" diff --git a/devtools/conda-envs/build-ubuntu-18.04.yml b/devtools/conda-envs/build-ubuntu-22.04.yml similarity index 96% rename from devtools/conda-envs/build-ubuntu-18.04.yml rename to devtools/conda-envs/build-ubuntu-22.04.yml index 40271720..ffd4d2f7 100644 --- a/devtools/conda-envs/build-ubuntu-18.04.yml +++ b/devtools/conda-envs/build-ubuntu-22.04.yml @@ -17,4 +17,4 @@ dependencies: - pytorch-gpu @PYTORCH_VERSION@ - swig - sysroot_linux-64 2.17 - - torchani \ No newline at end of file + - torchani