Skip to content

Commit

Permalink
trying cache instead of artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
aviadingo committed Jan 6, 2025
1 parent 83f0324 commit 0f2d37b
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions .github/workflows/cpp-golang-rust-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,23 @@ jobs:
id: os-version
run: |
echo "OS_VERSION=$(lsb_release -d | awk -F'\t' '{print $2}' | tr -d '[:space:]')" >> $GITHUB_OUTPUT
- name: Download ICICLE lib artifacts
uses: actions/download-artifact@v4
continue-on-error: true
# if: steps.exists-flag.outputs.EXIST_FLAG =='false'
# - name: Download ICICLE lib artifacts
# uses: actions/download-artifact@v4
# continue-on-error: true
# # if: steps.exists-flag.outputs.EXIST_FLAG =='false'
# with:
# name: icicle-builds-curve-${{ matrix.curve.name }}-${{ steps.extract-cuda-sha.outputs.cuda-backend-sha }}-${{ steps.os-version.outputs.OS_VERSION }}
# path: ${{steps.exists-flag.outputs.INSTALL_PATH}}
# merge-multiple: true

- name: Restore cached ICICLE backend
id: cache-icicle-restore
uses: actions/cache/restore@v4
with:
name: icicle-builds-curve-${{ matrix.curve.name }}-${{ steps.extract-cuda-sha.outputs.cuda-backend-sha }}-${{ steps.os-version.outputs.OS_VERSION }}
path: ${{steps.exists-flag.outputs.INSTALL_PATH}}
merge-multiple: true
path: |
${{steps.exists-flag.outputs.INSTALL_PATH}}
key: icicle-builds-curve-${{ matrix.curve.name }}-${{ steps.extract-cuda-sha.outputs.cuda-backend-sha }}-${{ steps.os-version.outputs.OS_VERSION }}


- name: Set CUDA backend flag
if: needs.check-changed-files.outputs.golang == 'true' || needs.check-changed-files.outputs.rust == 'true' || needs.check-changed-files.outputs.cpp == 'true'
Expand Down Expand Up @@ -201,6 +210,13 @@ jobs:
retention-days: 5
overwrite: true

- name: Cache ICICLE backend
id: cache-pricicleimes-save
uses: actions/cache/save@v4
with:
path: |
${{ steps.cuda-flag.outputs.INSTALL_PATH }}/*
key: icicle-builds-curve-${{ matrix.curve.name }}-${{ steps.extract-cuda-sha.outputs.cuda-backend-sha }}-${{ steps.os-version.outputs.OS_VERSION }}

- name: Run RUST Curve Tests
working-directory: ./wrappers/rust/icicle-curves
Expand Down

0 comments on commit 0f2d37b

Please sign in to comment.