Skip to content
Merged
Show file tree
Hide file tree
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
21 changes: 18 additions & 3 deletions .github/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,26 @@

set -e

# Add GPG key
curl -fsSL https://sanohiro.github.io/bcon/bcon.gpg | gpg --dearmor -o /usr/share/keyrings/bcon.gpg
# Pick the suite that matches this system's glibc.
#
# stable - built on Ubuntu 24.04, needs glibc 2.39+
# (Ubuntu 24.04+, Debian 13 trixie+)
# legacy - built on Ubuntu 22.04, needs glibc 2.34+
# (Ubuntu 22.04, Debian 12 bookworm, Raspberry Pi OS bookworm)
# Default to legacy: it runs on every supported system, so a glibc version we
# cannot parse degrades to a working install rather than an uninstallable one.
SUITE=legacy
GLIBC=$(ldd --version 2>/dev/null | head -1 | grep -oE '[0-9]+\.[0-9]+$' || true)
if [ -n "${GLIBC}" ] && [ "$(printf '2.39\n%s\n' "${GLIBC}" | sort -V | head -1)" = "2.39" ]; then
SUITE=stable
fi
echo "Detected glibc ${GLIBC:-unknown}, using '${SUITE}' suite."

# Add GPG key (--yes so re-running this script does not prompt)
curl -fsSL https://sanohiro.github.io/bcon/bcon.gpg | gpg --dearmor --yes -o /usr/share/keyrings/bcon.gpg

# Add repository
echo "deb [signed-by=/usr/share/keyrings/bcon.gpg] https://sanohiro.github.io/bcon stable main" > /etc/apt/sources.list.d/bcon.list
echo "deb [signed-by=/usr/share/keyrings/bcon.gpg] https://sanohiro.github.io/bcon ${SUITE} main" > /etc/apt/sources.list.d/bcon.list

# Update package list
apt update
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
libxkbcommon-dev libinput-dev libudev-dev \
libdbus-1-dev libwayland-dev \
libfontconfig1-dev libfreetype-dev \
libseat-dev \
libseat-dev libsystemd-dev \
pkg-config cmake clang

- uses: Swatinem/rust-cache@v2
Expand Down
Loading
Loading