Skip to content

Commit

Permalink
More CI fixes
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Dec 5, 2023
1 parent c6c1b8a commit 600ba96
Show file tree
Hide file tree
Showing 11 changed files with 124 additions and 21 deletions.
1 change: 1 addition & 0 deletions .github/workflows/bootstrap-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ case "${1}" in
libdbus-1-dev:${arch} \
libgl1-mesa-dev:${arch} \
libglib2.0-dev:${arch} \
libpcre2-dev:${arch} \
libpcre3-dev:${arch} \
libx11-dev:${arch} \
libxcb1-dev:${arch} \
Expand Down
33 changes: 17 additions & 16 deletions .github/workflows/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -718,19 +718,18 @@ jobs:
matrix:
include:
# ubuntu:20.04
# FIXME Could not invoke sanity test executable
#- target: linux-aarch64
#container: ubuntu:20.04
#os: ubuntu-latest
#- target: linux-armhf
#container: ubuntu:20.04
#os: ubuntu-latest
- target: linux-aarch64
container: ubuntu:20.04
os: ubuntu-latest
- target: linux-armhf
container: ubuntu:20.04
os: ubuntu-latest
- target: linux-i686
container: ubuntu:20.04
os: ubuntu-latest
#- target: linux-riscv64
#container: ubuntu:20.04
#os: ubuntu-latest
- target: linux-riscv64
container: ubuntu:20.04
os: ubuntu-latest
- target: linux-x86_64
container: ubuntu:20.04
os: ubuntu-latest
Expand All @@ -739,9 +738,10 @@ jobs:
- target: wasm
container: debian:12
os: ubuntu-latest
- target: win32
container: debian:12
os: ubuntu-latest
# FIXME build failure: too many sections (40327)
#- target: win32
#container: debian:12
#os: ubuntu-latest
- target: win64
container: debian:12
os: ubuntu-latest
Expand All @@ -768,9 +768,10 @@ jobs:
strategy:
matrix:
include:
- target: linux-x86_64
container: ubuntu:18.04
os: ubuntu-latest
# FIXME needs CMake 3.15
#- target: linux-x86_64
#container: ubuntu:18.04
#os: ubuntu-latest
- target: macos-universal-10.15
os: macos-11
- target: win64
Expand Down
5 changes: 5 additions & 0 deletions bootstrap-cardinal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ if [ -z "${target}" ]; then
exit 1
fi

# ---------------------------------------------------------------------------------------------------------------------
# LTO is unwanted for Cardinal builds, make sure it is off

export PAWPAW_SKIP_LTO=1

# ---------------------------------------------------------------------------------------------------------------------
# run bootstrap dependencies

Expand Down
7 changes: 4 additions & 3 deletions bootstrap-jack2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,14 @@ function build_custom_db() {
local pkgdir="${PAWPAW_BUILDDIR}/${name}-${version}"

if [ "${CROSS_COMPILING}" -eq 1 ]; then
extraconfrules+=" --host=${TOOLCHAIN_PREFIX}"
extraconfrules+=" --build=$(uname -m)-linux-gnu ac_cv_build=$(uname -m)-linux-gnu"
extraconfrules+=" --host=${TOOLCHAIN_PREFIX} ac_cv_host=${TOOLCHAIN_PREFIX}"
fi
if [ "${MACOS}" -eq 1 ]; then
extraconfrules+=" --with-mutex=x86_64/gcc-assembly db_cv_atomic=x86/gcc-assembly"
fi
if [ "${WIN32}" -eq 1 ]; then
extraconfrules+=" --enable-mingw ac_cv_build=$(uname -m)-linux-gnu ac_cv_host=${TOOLCHAIN_PREFIX}"
extraconfrules+=" --enable-mingw"
fi

_prebuild "${name}" "${pkgdir}"
Expand Down Expand Up @@ -123,7 +124,7 @@ if [ "${LINUX}" -eq 1 ] || [ "${WIN32}" -eq 1 ]; then
PORTAUDIO_EXTRAFLAGS+=" --without-asihpi"
PORTAUDIO_EXTRAFLAGS+=" --without-oss"

if [ -n "${MODAUDIO}" ] && [ "${MODAUDIO}" -eq 1 ]; then
if [ -n "${PAWPAW_MODAUDIO}" ] && [ "${PAWPAW_MODAUDIO}" -eq 1 ]; then
PORTAUDIO_EXTRAFLAGS+=" --without-alsa"
PORTAUDIO_EXTRAFLAGS+=" --with-jack"
elif [ "${LINUX}" -eq 1 ]; then
Expand Down
2 changes: 1 addition & 1 deletion bootstrap-mod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export PAWPAW_SKIP_LTO=1
# ---------------------------------------------------------------------------------------------------------------------
# run bootstrap dependencies

export MODAUDIO=1
export PAWPAW_MODAUDIO=1

./bootstrap-common.sh "${target}"
./bootstrap-jack2.sh "${target}"
Expand Down
2 changes: 1 addition & 1 deletion setup/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ function build_meson() {

local pkgdir="${PAWPAW_BUILDDIR}/${name}-${version}"

if [ "${CROSS_COMPILING}" -eq 1 ] && [ "${LINUX}" -eq 0 ]; then
if [ "${CROSS_COMPILING}" -eq 1 ]; then
extraconfrules="--cross-file "${PAWPAW_ROOT}/setup/meson/${PAWPAW_TARGET}.ini" ${extraconfrules}"
fi

Expand Down
19 changes: 19 additions & 0 deletions setup/meson/linux-aarch64.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[binaries]
name = 'linux-aarch64'
c = 'aarch64-linux-gnu-gcc'
cpp = 'aarch64-linux-gnu-g++'
ar = 'aarch64-linux-gnu-gcc-ar'
nm = 'aarch64-linux-gnu-gcc-nm'
ld = 'aarch64-linux-gnu-ld'
strip = 'aarch64-linux-gnu-strip'
pkgconfig = 'pkg-config'
exe_wrapper = 'qemu-aarch64-static'

[host_machine]
system = 'linux'
cpu_family = 'aarch64'
cpu = 'aarch64'
endian = 'little'

[properties]
needs_exe_wrapper = true
19 changes: 19 additions & 0 deletions setup/meson/linux-armhf.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[binaries]
name = 'linux-armhf'
c = 'arm-linux-gnueabihf-gcc'
cpp = 'arm-linux-gnueabihf-g++'
ar = 'arm-linux-gnueabihf-gcc-ar'
nm = 'arm-linux-gnueabihf-gcc-nm'
ld = 'arm-linux-gnueabihf-ld'
strip = 'arm-linux-gnueabihf-strip'
pkgconfig = 'pkg-config'
exe_wrapper = 'qemu-arm-static'

[host_machine]
system = 'linux'
cpu_family = 'arm'
cpu = 'arm'
endian = 'little'

[properties]
needs_exe_wrapper = true
19 changes: 19 additions & 0 deletions setup/meson/linux-i686.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[binaries]
name = 'linux-i686'
c = 'i686-linux-gnu-gcc'
cpp = 'i686-linux-gnu-g++'
ar = 'i686-linux-gnu-gcc-ar'
nm = 'i686-linux-gnu-gcc-nm'
ld = 'i686-linux-gnu-ld'
strip = 'i686-linux-gnu-strip'
pkgconfig = 'pkg-config'
exe_wrapper = 'qemu-i386-static'

[host_machine]
system = 'linux'
cpu_family = 'i686'
cpu = 'i686'
endian = 'little'

[properties]
needs_exe_wrapper = true
19 changes: 19 additions & 0 deletions setup/meson/linux-riscv64.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[binaries]
name = 'linux-riscv64'
c = 'riscv64-linux-gnu-gcc'
cpp = 'riscv64-linux-gnu-g++'
ar = 'riscv64-linux-gnu-gcc-ar'
nm = 'riscv64-linux-gnu-gcc-nm'
ld = 'riscv64-linux-gnu-ld'
strip = 'riscv64-linux-gnu-strip'
pkgconfig = 'pkg-config'
exe_wrapper = 'qemu-riscv64-static'

[host_machine]
system = 'linux'
cpu_family = 'riscv64'
cpu = 'riscv64'
endian = 'big'

[properties]
needs_exe_wrapper = true
19 changes: 19 additions & 0 deletions setup/meson/linux-x86_64.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[binaries]
name = 'linux-aarch64'
c = 'x86_64-linux-gnu-gcc'
cpp = 'x86_64-linux-gnu-g++'
ar = 'x86_64-linux-gnu-gcc-ar'
nm = 'x86_64-linux-gnu-gcc-nm'
ld = 'x86_64-linux-gnu-ld'
strip = 'x86_64-linux-gnu-strip'
pkgconfig = 'pkg-config'
exe_wrapper = 'qemu-x86_64-static'

[host_machine]
system = 'linux'
cpu_family = 'x86_64'
cpu = 'x86_64'
endian = 'little'

[properties]
needs_exe_wrapper = true

0 comments on commit 600ba96

Please sign in to comment.