Skip to content

Commit 3b67809

Browse files
committed
v2
1 parent 8d9ff4c commit 3b67809

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/gpu_test.yaml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,27 @@ jobs:
3333
uses: actions/checkout@v4
3434
- name: Install enroot
3535
run: |
36-
arch=$(dpkg --print-architecture)
37-
curl -fSsL -O https://github.com/NVIDIA/enroot/releases/download/v3.5.0/enroot_3.5.0-1_${arch}.deb
38-
curl -fSsL -O https://github.com/NVIDIA/enroot/releases/download/v3.5.0/enroot+caps_3.5.0-1_${arch}.deb
39-
sudo apt-get install -y ./*.deb
40-
rm -f enroot*.deb
36+
arch=$(uname -m)
37+
version="3.5.0"
38+
39+
# Install dependencies
40+
sudo yum install -y jq squashfs-tools parallel || sudo apt-get install -y jq squashfs-tools parallel || true
41+
42+
# Download and install enroot
43+
curl -fSsL -O https://github.com/NVIDIA/enroot/releases/download/v${version}/enroot-${version}-1.${arch}.rpm || \
44+
curl -fSsL -O https://github.com/NVIDIA/enroot/releases/download/v${version}/enroot_${version}-1_amd64.deb
45+
46+
curl -fSsL -O https://github.com/NVIDIA/enroot/releases/download/v${version}/enroot+caps-${version}-1.${arch}.rpm || \
47+
curl -fSsL -O https://github.com/NVIDIA/enroot/releases/download/v${version}/enroot+caps_${version}-1_amd64.deb
48+
49+
# Install based on available package manager
50+
if command -v rpm &> /dev/null; then
51+
sudo rpm -ivh enroot*.rpm
52+
elif command -v dpkg &> /dev/null; then
53+
sudo dpkg -i enroot*.deb
54+
fi
55+
56+
rm -f enroot*
4157
- name: Setup conda env
4258
uses: conda-incubator/setup-miniconda@v2
4359
with:

0 commit comments

Comments
 (0)