Skip to content

Commit

Permalink
updated scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Jul 3, 2024
1 parent bae872c commit 1037b37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/linux-precompile-x86_64-cuda-gnu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
if [ -d "$(pwd)/cudnn/lib64" ]; then
cp -a cudnn/lib64/* /usr/local/cuda/lib64/
fi
rm -rf cudnn
- name: Cache mix packages
id: cache-mix-deps
Expand Down
5 changes: 3 additions & 2 deletions do_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ set -xe
export MIX_ENV=docs
export EVISION_PREFER_PRECOMPILED=true
export EVISION_ENABLE_CUDA=true
export EVISION_CUDA_VERSION=121
export EVISION_CUDA_VERSION=12
export EVISION_CUDNN_VERSION=9
export NIF_VERSION=2.16
export EVISION_VERSION="$(grep 'def version, do: "' mix.exs | grep -P -oh '(\d+).(\d+).(\d+)')"

export TARBALL_FILENAME="evision-nif_${NIF_VERSION}-x86_64-linux-gnu-contrib-cuda${EVISION_CUDA_VERSION}-${EVISION_VERSION}"
export TARBALL_FILENAME="evision-nif_${NIF_VERSION}-x86_64-linux-gnu-contrib-cuda${EVISION_CUDA_VERSION}-cudnn${EVISION_CUDNN_VERSION}-${EVISION_VERSION}"
export TARBALL_NAME="${TARBALL_FILENAME}.tar.gz"
curl -fSL "https://github.com/cocoa-xu/evision/releases/download/v${EVISION_VERSION}/${TARBALL_NAME}" -o "/tmp/${TARBALL_NAME}"
export TARBALL_SHA256="$(sha256sum "/tmp/${TARBALL_NAME}" | cut -d ' ' -f 1)"
Expand Down

0 comments on commit 1037b37

Please sign in to comment.