Skip to content

Commit

Permalink
[ci] Add a ubuntu 24.04 build
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Apr 26, 2024
1 parent ae66fd1 commit 122c3ad
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ubuntu-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
- { deploy: false, distro: jammy, CC: clang-14, CXX: clang++-14, LDFLAGS: "-fuse-ld=lld" }
- { deploy: true, distro: lunar, CC: gcc, CXX: g++, LDFLAGS: "-fuse-ld=lld" }
- { deploy: false, distro: lunar, CC: clang, CXX: clang++, LDFLAGS: "-fuse-ld=lld" }
- { deploy: true, distro: noble, CC: gcc, CXX: g++, LDFLAGS: "-fuse-ld=lld" }
- { deploy: false, distro: noble, CC: clang, CXX: clang++, LDFLAGS: "-fuse-ld=lld" }

container:
image: ubuntu:${{ matrix.distro }}
Expand Down
22 changes: 22 additions & 0 deletions ci/noble.build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

mkdir build
(
cd build
cmake .. \
-GNinja \
-DSCORE_DEPLOYMENT_BUILD=1 \
-DBUILD_SHARED_LIBS=0 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=install \
-DCMAKE_UNITY_BUILD=1 \
-DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS" \
-DCMAKE_SHARED_LINKER_FLAGS="$LDFLAGS" \
-DCMAKE_MODULE_LINKER_FLAGS="$LDFLAGS"

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

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

source ci/common.setup.sh

echo 'debconf debconf/frontend select Noninteractive' | $SUDO debconf-set-selections

$SUDO apt-get update -qq
$SUDO apt-get install -y \
--allow-change-held-packages \
--allow-downgrades \
--allow-remove-essential \
--allow-unauthenticated \
binutils gcc g++ clang lld \
software-properties-common wget \
libasound-dev \
ninja-build cmake \
libfftw3-dev \
libsuil-dev liblilv-dev lv2-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 \
libqt6core5compat6-dev \
libqt6opengl6-dev \
libqt6websockets6-dev \
libqt6serialport6-dev \
libqt6shadertools6-dev \
libbluetooth-dev libsdl2-dev libsdl2-2.0-0 \
libglu1-mesa-dev libglu1-mesa libgles2-mesa-dev \
libavahi-compat-libdnssd-dev libsamplerate0-dev \
portaudio19-dev \
libpipewire-0.3-dev \
libclang-dev llvm-dev \
libvulkan-dev \
libavcodec-dev libavdevice-dev libavutil-dev libavfilter-dev libavformat-dev libswresample-dev \
file \
dpkg-dev

source ci/common.deps.sh

0 comments on commit 122c3ad

Please sign in to comment.