mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-02 11:11:04 +02:00
ci: ubuntu_setup.sh
This commit is contained in:
parent
1dbd933705
commit
d65df93e32
5 changed files with 39 additions and 23 deletions
20
.github/scripts/ubuntu_setup.sh
vendored
Executable file
20
.github/scripts/ubuntu_setup.sh
vendored
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
|
||||
# sudo needed for github runner, not available by default for cross images
|
||||
if command -v sudo >/dev/null 2>&1; then
|
||||
SUDO="sudo"
|
||||
else
|
||||
SUDO=""
|
||||
fi
|
||||
|
||||
# Needed for cross-compilation
|
||||
if [ -n "$CROSS_DEB_ARCH" ]; then
|
||||
$SUDO dpkg --add-architecture "$CROSS_DEB_ARCH"
|
||||
fi
|
||||
|
||||
# CROSS_DEB_ARCH is empty for native builds
|
||||
$SUDO apt-get update && $SUDO apt-get install --assume-yes \
|
||||
libssl-dev${CROSS_DEB_ARCH:+:$CROSS_DEB_ARCH} \
|
||||
libgtk-3-dev${CROSS_DEB_ARCH:+:$CROSS_DEB_ARCH} \
|
||||
libgtk-layer-shell-dev${CROSS_DEB_ARCH:+:$CROSS_DEB_ARCH} \
|
||||
libpulse-dev${CROSS_DEB_ARCH:+:$CROSS_DEB_ARCH}
|
Loading…
Add table
Add a link
Reference in a new issue