Skip to content

Commit f793574

Browse files
committed
.
1 parent c82e125 commit f793574

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/reusable_basic.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,12 @@ jobs:
156156
- name: Install cmake (non-default version)
157157
if: matrix.cmake_ver != 'default'
158158
run: |
159-
echo ${USERPASS} | sudo -Sk apt-get remove --purge -y cmake
160-
wget https://github.com/Kitware/CMake/releases/download/v${{matrix.cmake_ver}}/cmake-${{matrix.cmake_ver}}-Linux-x86_64.sh
161-
chmod +x cmake-${{matrix.cmake_ver}}-Linux-x86_64.sh
162-
./cmake-${{matrix.cmake_ver}}-Linux-x86_64.sh --skip-license --prefix=/usr/local
159+
echo ${USERPASS} | sudo -Sk bash -c "
160+
apt-get remove --purge -y cmake
161+
wget https://github.com/Kitware/CMake/releases/download/v${{matrix.cmake_ver}}/cmake-${{matrix.cmake_ver}}-Linux-x86_64.sh
162+
chmod +x cmake-${{matrix.cmake_ver}}-Linux-x86_64.sh
163+
./cmake-${{matrix.cmake_ver}}-Linux-x86_64.sh --skip-license --prefix=/usr/local
164+
"
163165
164166
- name: Uninstall TBB apt package
165167
if: matrix.install_tbb == 'OFF'

0 commit comments

Comments
 (0)