From 03480d634c584c67af4638907a13849becd07704 Mon Sep 17 00:00:00 2001 From: Justin Laughlin Date: Tue, 6 Aug 2024 14:44:18 -0700 Subject: [PATCH] try gh action --- .github/workflows/build-and-test-callable.yml | 43 +++++++++++-------- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build-and-test-callable.yml b/.github/workflows/build-and-test-callable.yml index 1320be53..737a9bb6 100644 --- a/.github/workflows/build-and-test-callable.yml +++ b/.github/workflows/build-and-test-callable.yml @@ -102,26 +102,33 @@ jobs: - name: Purge PIP cache run: pip cache purge - - name: Cache CUDA - if: inputs.cuda - id: cache-cuda - uses: actions/cache@v4 - with: - path: ~/cache - key: cuda-installer-${{ env.cuda-toolkit-version }}-${{ env.cuda-driver-version }} - - - name: Download CUDA - if: inputs.cuda && steps.cache-cuda.outputs.cache-hit == false - run: | - CUDA_URL="https://developer.download.nvidia.com/compute/cuda/${{ env.cuda-toolkit-version }}/local_installers/cuda_${{ env.cuda-toolkit-version }}_${{ env.cuda-driver-version }}_linux.run" - curl -o ~/cache/cuda.run --create-dirs $CUDA_URL + # - name: Cache CUDA + # if: inputs.cuda + # id: cache-cuda + # uses: actions/cache@v4 + # with: + # path: ~/cache + # key: cuda-installer-${{ env.cuda-toolkit-version }}-${{ env.cuda-driver-version }} + + # - name: Download CUDA + # if: inputs.cuda && steps.cache-cuda.outputs.cache-hit == false + # run: | + # CUDA_URL="https://developer.download.nvidia.com/compute/cuda/${{ env.cuda-toolkit-version }}/local_installers/cuda_${{ env.cuda-toolkit-version }}_${{ env.cuda-driver-version }}_linux.run" + # curl -o ~/cache/cuda.run --create-dirs $CUDA_URL + + # - name: Install CUDA + # if: inputs.cuda + # run: | + # # The --silent flag is necessary to bypass user-input, e.g. accepting the EULA + # sudo sh ~/cache/cuda.run --silent --toolkit + # echo "/usr/local/cuda/bin" >> $GITHUB_PATH - name: Install CUDA - if: inputs.cuda - run: | - # The --silent flag is necessary to bypass user-input, e.g. accepting the EULA - sudo sh ~/cache/cuda.run --silent --toolkit - echo "/usr/local/cuda/bin" >> $GITHUB_PATH + uses: Jimver/cuda-toolkit@master + id: cuda-toolkit + with: + log-file-suffix: '${{ inputs.os }}.txt' + - name: Print dependency information run: |