Skip to content

Commit

Permalink
ci: Try to remove sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Feb 2, 2024
1 parent c0aca42 commit 4455257
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ jobs:

- name: Register robotpkg
run: |
sudo sh -c "echo \"deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub $(lsb_release -cs) robotpkg\" >> /etc/apt/sources.list "
sudo apt-key adv --fetch-keys http://robotpkg.openrobots.org/packages/debian/robotpkg.key
sh -c "echo \"deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub $(lsb_release -cs) robotpkg\" >> /etc/apt/sources.list "
apt-key adv --fetch-keys http://robotpkg.openrobots.org/packages/debian/robotpkg.key
- name: Set and install dependencies
run: |
sudo rm -rf /usr/local/share/boost/1.69.0
rm -rf /usr/local/share/boost/1.69.0
export PYTHON3_VERSION=$(python3 -c "import sys; print(str(sys.version_info.major)+str(sys.version_info.minor))")
export APT_DEPENDENCIES="doxygen \
ccache \
Expand All @@ -93,11 +93,11 @@ jobs:
python3-numpy \
robotpkg-py${PYTHON3_VERSION}-hpp-fcl"
echo $APT_DEPENDENCIES
sudo apt-get update -qq
sudo apt-get install -qq ${APT_DEPENDENCIES}
apt-get update -qq
apt-get install -qq ${APT_DEPENDENCIES}
- name: Free disk space
run: |
sudo apt clean
apt clean
df -h
- name: Install casadi
run: |
Expand All @@ -110,7 +110,7 @@ jobs:
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_EXAMPLES=OFF
sudo make -j2 install
make -j2 install
cd ../..
rm -rf casadi
cd ..
Expand All @@ -137,7 +137,7 @@ jobs:
make -j2 build_tests
export CTEST_OUTPUT_ON_FAILURE=1
make test
sudo make install
make install
- name: Test packaging
run: |
Expand Down Expand Up @@ -188,4 +188,4 @@ jobs:
- name: Uninstall project
run: |
cd build
sudo make uninstall
make uninstall

0 comments on commit 4455257

Please sign in to comment.