Skip to content

Commit db002ee

Browse files
committed
add rust env
1 parent 5026487 commit db002ee

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/publish-rust.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,23 @@ jobs:
2121
else
2222
echo "is_release=true" >> $GITHUB_OUTPUT
2323
fi
24-
- name: Install Rust
24+
- name: Setup environment
2525
if: steps.check_release.outputs.is_release == 'true'
2626
run: |
27-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
28-
echo "${HOME}/.cargo/bin" >> $GITHUB_PATH
27+
. /opt/conda/etc/profile.d/conda.sh
28+
29+
rapids-dependency-file-generator \
30+
--output conda \
31+
--file-key rust \
32+
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" \
33+
| tee env.yaml
34+
35+
rapids-mamba-retry env create --yes -f env.yaml -n rust
36+
37+
set +eu
38+
conda activate rust
39+
set -eu
40+
2941
- name: Publish sys crate
3042
if: steps.check_release.outputs.is_release == 'true'
3143
working-directory: ./rust/cuvs-sys

0 commit comments

Comments
 (0)