File tree 2 files changed +21
-5
lines changed
2 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 33
33
- name : Setup conda
34
34
run : |
35
35
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
36
- bash ~/miniconda.sh -b -p $HOME/miniconda
36
+ bash ~/miniconda.sh -b -p $HOME/miniconda -u
37
+ conda update -n base -c defaults -y conda
37
38
- name : setup Path
38
39
run : |
39
40
echo "/home/ec2-user/miniconda/bin" >> $GITHUB_PATH
51
52
- name : Install gcc
52
53
shell : bash
53
54
run : |
54
- sudo apt-get install build-essential
55
+ conda install -n build_binary -c conda-forge -y gxx_linux-64=11.4.0 sysroot_linux-64=2.17
56
+ echo "[INSTALL] Setting the C/C++ compiler symlinks ..."
57
+ cc_path=$(conda run -n build_binary printenv CC)
58
+ cxx_path=$(conda run -n build_binary printenv CXX)
59
+ ln -sf "${cc_path}" "$(dirname "$cc_path")/cc"
60
+ ln -sf "${cc_path}" "$(dirname "$cc_path")/gcc"
61
+ ln -sf "${cxx_path}" "$(dirname "$cxx_path")/c++"
62
+ ln -sf "${cxx_path}" "$(dirname "$cxx_path")/g++"
55
63
- name : setup Path
56
64
run : |
57
65
echo /usr/local/bin >> $GITHUB_PATH
Original file line number Diff line number Diff line change 48
48
run : |
49
49
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
50
50
bash ~/miniconda.sh -b -p $HOME/miniconda -u
51
+ conda update -n base -c defaults -y conda
51
52
- name : setup Path
52
53
run : |
53
54
echo "/home/ec2-user/miniconda/bin" >> $GITHUB_PATH
62
63
- name : check python version
63
64
run : |
64
65
conda run -n build_binary python --version
65
- - name : Install C/C++ compilers
66
- run : |
67
- sudo yum install -y gcc gcc-c++
66
+ - name : Install gcc
67
+ run : |
68
+ conda install -n build_binary -c conda-forge -y gxx_linux-64=11.4.0 sysroot_linux-64=2.17
69
+ echo "[INSTALL] Setting the C/C++ compiler symlinks ..."
70
+ cc_path=$(conda run -n build_binary printenv CC)
71
+ cxx_path=$(conda run -n build_binary printenv CXX)
72
+ ln -sf "${cc_path}" "$(dirname "$cc_path")/cc"
73
+ ln -sf "${cc_path}" "$(dirname "$cc_path")/gcc"
74
+ ln -sf "${cxx_path}" "$(dirname "$cxx_path")/c++"
75
+ ln -sf "${cxx_path}" "$(dirname "$cxx_path")/g++"
68
76
- name : Install PyTorch and CUDA
69
77
shell : bash
70
78
run : |
You can’t perform that action at this time.
0 commit comments