From 6aff72fd3dbe08d2a591d4f9f1a108dd35b71c54 Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Fri, 13 Nov 2020 20:36:43 +0100 Subject: [PATCH] cache CUDA installer --- .github/workflows/ci.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 39f592cea7..8456f7d5e3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -26,16 +26,25 @@ jobs: path: build/llama-amalgamated/llama.hpp build-ubuntu-gcc9-cuda: + env: + CUDA_INSTALLER: cuda_11.1.1_455.32.00_linux.run runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: vcpkg install dependencies run: | vcpkg install catch2 fmt tbb + - name: cache CUDA 11 + id: cache-cude + uses: actions/cache@v2 + with: + path: ${{CUDA_INSTALLER}} + key: ${{CUDA_INSTALLER}} - name: install CUDA 11 + if: steps.cache-cuda.outputs.cache-hit != 'true' run: | - wget --no-verbose https://developer.download.nvidia.com/compute/cuda/11.1.1/local_installers/cuda_11.1.1_455.32.00_linux.run - sudo sh cuda_11.1.1_455.32.00_linux.run --silent --toolkit + wget --no-verbose https://developer.download.nvidia.com/compute/cuda/11.1.1/local_installers/$CUDA_INSTALLER + sudo sh $CUDA_INSTALLER --silent --toolkit - name: install alpaka run: | git clone https://github.com/alpaka-group/alpaka.git