Skip to content

Commit

Permalink
[ci] Try to add a system build of debian trixie
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Nov 4, 2024
1 parent c8b1bfc commit 4d4d329
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/debian-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- { distro: bookworm, CC: clang-19, CXX: clang++-19, PACKAGES: "clang-19" }
- { distro: bookworm, CC: gcc, CXX: g++, PACKAGES: "build-essential" }
- { distro: trixie, CC: gcc, CXX: g++, PACKAGES: "build-essential gcc-14 g++-14 llvm-17-dev libclang-17-dev " }
- { distro: trixie-system, CC: gcc, CXX: g++, PACKAGES: "build-essential gcc-14 g++-14 llvm-17-dev libclang-17-dev " }
- { distro: trixie, CC: clang-19, CXX: clang++-19, PACKAGES: "build-essential clang-19 llvm-19-dev libclang-19-dev lld-19 " }
steps:
- name: Install git
Expand Down
20 changes: 20 additions & 0 deletions ci/trixie-system.build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

export SCORE_DIR=$PWD

mkdir -p /build || true
cd /build

cmake $SCORE_DIR \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=install \
-DSCORE_DYNAMIC_PLUGINS=1 \
-DSCORE_USE_SYSTEM_LIBRARIES=1 \
-DSCORE_PCH=1

cmake --build .
cmake --build . --target install
cmake --build . --target package

mv *.deb ..
39 changes: 39 additions & 0 deletions ci/trixie-system.deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash -eux

source ci/common.setup.sh

# See debian-builds.yml for packages
# (those are the specific compiler versions)
# Mainly this variable is neede because one needs to do
# apt install gcc-N g++-N to get g++-N,
# but only clang-M as clang++-M is not a package

export CLANG_VERSION=19

# libsdl2-dev libsdl2-2.0-0
$SUDO apt-get update -qq
$SUDO apt-get install -qq --force-yes \
${PACKAGES:=} \
build-essential binutils cmake \
libasound2-dev \
ninja-build \
clang-$CLANG_VERSION lld-$CLANG_VERSION libclang-$CLANG_VERSION-dev llvm-$CLANG_VERSION-dev \
libfftw3-dev \
libsuil-dev liblilv-dev lv2-dev \
libdrm-dev libgbm-dev \
libdbus-1-dev \
qt6-base-dev qt6-base-dev-tools qt6-base-private-dev \
qt6-declarative-dev qt6-declarative-dev-tools qt6-declarative-private-dev \
qt6-scxml-dev \
qt6-websockets-dev \
qt6-serialport-dev \
qt6-shadertools-dev \
qt6-svg-dev \
libbluetooth-dev \
libglu1-mesa-dev libglu1-mesa libgles2-mesa-dev \
libavahi-compat-libdnssd-dev libsamplerate0-dev \
portaudio19-dev \
libpipewire-0.3-dev \
libavcodec-dev libavdevice-dev libavutil-dev libavfilter-dev libavformat-dev libswresample-dev

source ci/common.deps.sh

0 comments on commit 4d4d329

Please sign in to comment.