Skip to content

Commit 8dd1be7

Browse files
authored
[CI] Fix libs workflows (#2800)
1 parent b538c66 commit 8dd1be7

File tree

36 files changed

+559
-187
lines changed

36 files changed

+559
-187
lines changed

.github/unittest/linux_libs/scripts_ataridqn/install.sh

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ unset PYTORCH_VERSION
44
# For unittest, nightly PyTorch is used as the following section,
55
# so no need to set PYTORCH_VERSION.
66
# In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config.
7-
apt-get update && apt-get install -y git wget gcc g++
8-
#apt-get update && apt-get install -y git wget freeglut3 freeglut3-dev
97

108
set -e
119

.github/unittest/linux_libs/scripts_ataridqn/setup_env.sh

+23-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,31 @@
88
set -e
99
set -v
1010

11-
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
12-
# Avoid error: "fatal: unsafe repository"
13-
apt-get update && apt-get install -y git wget gcc g++ unzip curl
1411

12+
apt-get update && apt-get upgrade -y && apt-get install -y git
13+
# Avoid error: "fatal: unsafe repository"
1514
git config --global --add safe.directory '*'
15+
apt-get install -y wget \
16+
gcc \
17+
g++ \
18+
unzip \
19+
curl \
20+
patchelf \
21+
libosmesa6-dev \
22+
libgl1-mesa-glx \
23+
libglfw3 \
24+
swig3.0 \
25+
libglew-dev \
26+
libglvnd0 \
27+
libgl1 \
28+
libglx0 \
29+
libegl1 \
30+
libgles2
31+
32+
# Upgrade specific package
33+
apt-get upgrade -y libstdc++6
34+
35+
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
1636
root_dir="$(git rev-parse --show-toplevel)"
1737
conda_dir="${root_dir}/conda"
1838
env_dir="${root_dir}/env"

.github/unittest/linux_libs/scripts_brax/run_all.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -euxo pipefail
44

5-
yum makecache
6-
yum install -y glfw glew mesa-libGL mesa-libGL-devel mesa-libOSMesa-devel egl-utils freeglut
5+
apt update
6+
apt install -y libglfw3 libglfw3-dev libglew-dev libgl1-mesa-glx libgl1-mesa-dev mesa-common-dev libegl1-mesa-dev freeglut3 freeglut3-dev
77

88
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
99
bash ${this_dir}/setup_env.sh

.github/unittest/linux_libs/scripts_brax/setup_env.sh

+22-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,30 @@
77

88
set -euxo pipefail
99

10-
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
10+
apt-get update && apt-get upgrade -y && apt-get install -y git
1111
# Avoid error: "fatal: unsafe repository"
1212
git config --global --add safe.directory '*'
13+
apt-get install -y wget \
14+
gcc \
15+
g++ \
16+
unzip \
17+
curl \
18+
patchelf \
19+
libosmesa6-dev \
20+
libgl1-mesa-glx \
21+
libglfw3 \
22+
swig3.0 \
23+
libglew-dev \
24+
libglvnd0 \
25+
libgl1 \
26+
libglx0 \
27+
libegl1 \
28+
libgles2
29+
30+
# Upgrade specific package
31+
apt-get upgrade -y libstdc++6
32+
33+
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
1334
root_dir="$(git rev-parse --show-toplevel)"
1435
conda_dir="${root_dir}/conda"
1536
env_dir="${root_dir}/env"

.github/unittest/linux_libs/scripts_chess/install.sh

+16
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ unset PYTORCH_VERSION
44
# For unittest, nightly PyTorch is used as the following section,
55
# so no need to set PYTORCH_VERSION.
66
# In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config.
7+
apt-get update && apt-get install -y \
8+
git \
9+
wget \
10+
gcc \
11+
g++ \
12+
patchelf \
13+
libosmesa6-dev \
14+
libgl1-mesa-glx \
15+
libglfw3 \
16+
swig3.0 \
17+
libglew-dev \
18+
libglvnd0 \
19+
libgl1 \
20+
libglx0 \
21+
libegl1 \
22+
libgles2
723

824
set -e
925

.github/unittest/linux_libs/scripts_chess/setup_env.sh

+19-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,27 @@ set -e
99
set -v
1010

1111
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
12-
yum install cairo-devel -y
13-
12+
apt-get update && apt-get upgrade -y && apt-get install -y git
1413
# Avoid error: "fatal: unsafe repository"
15-
1614
git config --global --add safe.directory '*'
15+
apt-get install -y wget \
16+
gcc \
17+
g++ \
18+
unzip \
19+
curl \
20+
patchelf \
21+
libosmesa6-dev \
22+
libgl1-mesa-glx \
23+
libglfw3 \
24+
swig3.0 \
25+
libglew-dev \
26+
libglvnd0 \
27+
libgl1 \
28+
libglx0 \
29+
libegl1 \
30+
libgles2 \
31+
libcairo2-dev
32+
1733
root_dir="$(git rev-parse --show-toplevel)"
1834
conda_dir="${root_dir}/conda"
1935
env_dir="${root_dir}/env"

.github/unittest/linux_libs/scripts_d4rl/install.sh

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ unset PYTORCH_VERSION
44
# For unittest, nightly PyTorch is used as the following section,
55
# so no need to set PYTORCH_VERSION.
66
# In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config.
7-
apt-get update && apt-get install -y git wget gcc g++
8-
#apt-get update && apt-get install -y git wget freeglut3 freeglut3-dev
97

108
set -e
119

.github/unittest/linux_libs/scripts_d4rl/setup_env.sh

+30-5
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,33 @@ set -e
99
set -v
1010

1111
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
12+
apt-get update && apt-get upgrade -y && apt-get install -y git
1213
# Avoid error: "fatal: unsafe repository"
13-
apt-get update && apt-get install -y git wget gcc g++ unzip
14-
1514
git config --global --add safe.directory '*'
15+
apt-get install -y wget \
16+
gcc \
17+
g++ \
18+
unzip \
19+
curl \
20+
patchelf \
21+
libosmesa6-dev \
22+
libgl1-mesa-glx \
23+
libglfw3 \
24+
swig3.0 \
25+
libglew-dev \
26+
libglvnd0 \
27+
libgl1 \
28+
libglx0 \
29+
libegl1 \
30+
libgles2
31+
32+
# Upgrade specific package
33+
apt-get upgrade -y libstdc++6
34+
35+
cd /usr/lib/x86_64-linux-gnu
36+
ln -s libglut.so.3.12 libglut.so.3
37+
cd $this_dir
38+
1639
root_dir="$(git rev-parse --show-toplevel)"
1740
conda_dir="${root_dir}/conda"
1841
env_dir="${root_dir}/env"
@@ -78,9 +101,9 @@ pip3 install pip --upgrade
78101
if [[ $OSTYPE == 'darwin'* ]]; then
79102
PRIVATE_MUJOCO_GL=glfw
80103
elif [ "${CU_VERSION:-}" == cpu ]; then
81-
PRIVATE_MUJOCO_GL=osmesa
104+
PRIVATE_MUJOCO_GL=egl
82105
else
83-
PRIVATE_MUJOCO_GL=osmesa
106+
PRIVATE_MUJOCO_GL=egl
84107
fi
85108

86109
export MUJOCO_GL=$PRIVATE_MUJOCO_GL
@@ -94,6 +117,8 @@ conda env config vars set \
94117
SDL_VIDEODRIVER=dummy \
95118
MUJOCO_GL=$PRIVATE_MUJOCO_GL \
96119
PYOPENGL_PLATFORM=$PRIVATE_MUJOCO_GL \
97-
TOKENIZERS_PARALLELISM=true
120+
TOKENIZERS_PARALLELISM=true \
121+
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6
122+
98123

99124
conda env update --file "${this_dir}/environment.yml" --prune

.github/unittest/linux_libs/scripts_envpool/setup_env.sh

+27-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,31 @@
66
# Do not install PyTorch and torchvision here, otherwise they also get cached.
77

88
set -e
9-
10-
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
9+
apt-get update && apt-get upgrade -y && apt-get install -y git
1110
# Avoid error: "fatal: unsafe repository"
1211
git config --global --add safe.directory '*'
12+
apt-get install -y wget \
13+
gcc \
14+
g++ \
15+
unzip \
16+
curl \
17+
patchelf \
18+
libosmesa6-dev \
19+
libgl1-mesa-glx \
20+
libglfw3 \
21+
swig3.0 \
22+
libglew-dev \
23+
libglvnd0 \
24+
libgl1 \
25+
libglx0 \
26+
libegl1 \
27+
libgles2
28+
29+
30+
# Upgrade specific package
31+
apt-get upgrade -y libstdc++6
32+
33+
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
1334
root_dir="$(git rev-parse --show-toplevel)"
1435
conda_dir="${root_dir}/conda"
1536
env_dir="${root_dir}/env"
@@ -47,7 +68,10 @@ pip install pip --upgrade
4768

4869
conda env update --file "${this_dir}/environment.yml" --prune
4970

50-
yum install -y mesa-libGL
71+
apt update
72+
conda env config vars set \
73+
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 \
74+
MUJOCO_GL=egl
5175

5276
conda deactivate
5377
conda activate "${env_dir}"

.github/unittest/linux_libs/scripts_gen-dgrl/install.sh

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ unset PYTORCH_VERSION
44
# For unittest, nightly PyTorch is used as the following section,
55
# so no need to set PYTORCH_VERSION.
66
# In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config.
7-
apt-get update && apt-get install -y git wget gcc g++
8-
#apt-get update && apt-get install -y git wget freeglut3 freeglut3-dev
97

108
set -e
119

.github/unittest/linux_libs/scripts_gen-dgrl/setup_env.sh

+23-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,31 @@
88
set -e
99
set -v
1010

11-
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
11+
apt-get update && apt-get upgrade -y && apt-get install -y git
1212
# Avoid error: "fatal: unsafe repository"
13-
apt-get update && apt-get install -y git wget gcc g++ unzip
14-
1513
git config --global --add safe.directory '*'
14+
apt-get install -y wget \
15+
gcc \
16+
g++ \
17+
unzip \
18+
curl \
19+
patchelf \
20+
libosmesa6-dev \
21+
libgl1-mesa-glx \
22+
libglfw3 \
23+
swig3.0 \
24+
libglew-dev \
25+
libglvnd0 \
26+
libgl1 \
27+
libglx0 \
28+
libegl1 \
29+
libgles2
30+
31+
32+
# Upgrade specific package
33+
apt-get upgrade -y libstdc++6
34+
35+
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
1636
root_dir="$(git rev-parse --show-toplevel)"
1737
conda_dir="${root_dir}/conda"
1838
env_dir="${root_dir}/env"

.github/unittest/linux_libs/scripts_jumanji/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ dependencies:
1818
- scipy
1919
- hydra-core
2020
- jumanji
21+
- gymnasium<1.0.0

.github/unittest/linux_libs/scripts_jumanji/setup_env.sh

+23-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,31 @@
66
# Do not install PyTorch and torchvision here, otherwise they also get cached.
77

88
set -e
9-
10-
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
9+
apt-get update && apt-get upgrade -y && apt-get install -y git
1110
# Avoid error: "fatal: unsafe repository"
1211
git config --global --add safe.directory '*'
12+
apt-get install -y wget \
13+
gcc \
14+
g++ \
15+
unzip \
16+
curl \
17+
patchelf \
18+
libosmesa6-dev \
19+
libgl1-mesa-glx \
20+
libglfw3 \
21+
swig3.0 \
22+
libglew-dev \
23+
libglvnd0 \
24+
libgl1 \
25+
libglx0 \
26+
libegl1 \
27+
libgles2
28+
29+
30+
# Upgrade specific package
31+
apt-get upgrade -y libstdc++6
32+
33+
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
1334
root_dir="$(git rev-parse --show-toplevel)"
1435
conda_dir="${root_dir}/conda"
1536
env_dir="${root_dir}/env"

.github/unittest/linux_libs/scripts_meltingpot/setup_env.sh

+20-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,27 @@
66
# Do not install PyTorch and torchvision here, otherwise they also get cached.
77

88
set -e -v
9+
apt-get update && apt-get upgrade -y && apt-get install -y git
10+
# Avoid error: "fatal: unsafe repository"
11+
git config --global --add safe.directory '*'
12+
apt-get install -y wget \
13+
gcc \
14+
g++ \
15+
unzip \
16+
curl \
17+
patchelf \
18+
libosmesa6-dev \
19+
libgl1-mesa-glx \
20+
libglfw3 \
21+
swig3.0 \
22+
libglew-dev \
23+
libglvnd0 \
24+
libgl1 \
25+
libglx0 \
26+
libegl1 \
27+
libgles2
928

10-
apt-get update && apt-get upgrade -y
11-
apt-get install -y git wget g++ gcc libglfw3 libgl1-mesa-glx libosmesa6 libglew-dev libglvnd0 libgl1 libglx0 libegl1 libgles2 curl
29+
# Upgrade specific package
1230
apt-get upgrade -y libstdc++6
1331

1432
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

.github/unittest/linux_libs/scripts_minari/install.sh

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ unset PYTORCH_VERSION
44
# For unittest, nightly PyTorch is used as the following section,
55
# so no need to set PYTORCH_VERSION.
66
# In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config.
7-
apt-get update && apt-get install -y git wget gcc g++
8-
#apt-get update && apt-get install -y git wget freeglut3 freeglut3-dev
97

108
set -e
119

0 commit comments

Comments
 (0)