Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 21 additions & 5 deletions scripts/os.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
#!/usr/bin/env bash

sudo apt-get update \
&& sudo apt-get install g++ \
pkg-config libx11-dev \
libasound2-dev libudev-dev \
libwayland-dev -y
if command -v sudo &> /dev/null
then
RUN_CMD="sudo"
echo "--- sudo found, using sudo for privileged commands ---"
else
RUN_CMD=""
echo "--- sudo not found, running commands without sudo ---"
fi

echo "--- Attempting to update system package list... ---"

$RUN_CMD apt-get update

echo "--- Attempting to add deps for bevy to run in pipeline... ---"

$RUN_CMD apt-get install g++ \
pkg-config libx11-dev \
libasound2-dev libudev-dev \
libwayland-dev -y

echo "--- OS dep CI script finished ---"