Skip to content

Commit

Permalink
Run as root so github actions doesn't fail on github.com
Browse files Browse the repository at this point in the history
  • Loading branch information
qhdwight committed Sep 18, 2023
1 parent 5dfb43e commit 2077212
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
runs-on: ubuntu-latest
container:
image: umrover1/ros:latest
options: --user root
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -22,9 +23,9 @@ jobs:
run: . /home/mrover/catkin_ws/src/mrover/venv/bin/activate && pip install -e "$GITHUB_WORKSPACE/src/mrover[dev]"
- name: Style Check
run: . /home/mrover/catkin_ws/src/mrover/venv/bin/activate && cd $GITHUB_WORKSPACE/src/mrover/ && ./style.sh
- name: Ensure APT Requirements
- name: Ensure ROS APT Requirements
if: github.event.pull_request.draft == false
run: rosdep update && rosdep install --from-paths "$GITHUB_WORKSPACE/src" --ignore-src -r -y --rosdistro noetic
run: runuser -u mrover -- rosdep update && rosdep install --from-paths "$GITHUB_WORKSPACE/src" --ignore-src -r -y --rosdistro noetic
- name: Copy Catkin Profiles
if: github.event.pull_request.draft == false
run: rsync -r $GITHUB_WORKSPACE/src/mrover/ansible/roles/build/files/profiles $GITHUB_WORKSPACE/.catkin_tools
Expand Down

0 comments on commit 2077212

Please sign in to comment.