Skip to content

Commit 704eed0

Browse files
committed
update versions in build action 4
1 parent 3aaf4f2 commit 704eed0

1 file changed

Lines changed: 42 additions & 7 deletions

File tree

.github/workflows/build-wavpack.yml

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,24 @@ jobs:
1111
fail-fast: false
1212
max-parallel: 4
1313
matrix:
14-
glibc_version: ['2.31', '2.33', '2.35', '2.36', '2.37', '2.39'] # Common versions from Ubuntu LTS releases
14+
include:
15+
- glibc_version: '2.31'
16+
ubuntu_version: '20.04'
17+
- glibc_version: '2.33'
18+
ubuntu_version: '21.04'
19+
- glibc_version: '2.35'
20+
ubuntu_version: '22.04'
21+
- glibc_version: '2.36'
22+
ubuntu_version: '22.10'
23+
- glibc_version: '2.37'
24+
ubuntu_version: '23.04'
25+
- glibc_version: '2.39'
26+
ubuntu_version: '24.04'
1527
wavpack_version: ['5.7.0'] # Stick to stable version for now
1628

29+
env:
30+
DEBIAN_FRONTEND: noninteractive
31+
1732
steps:
1833
- uses: actions/checkout@v4
1934

@@ -23,10 +38,12 @@ jobs:
2338
- name: Create Dockerfile for glibc build
2439
run: |
2540
cat > Dockerfile.build << 'EOF'
41+
ARG UBUNTU_VERSION
2642
ARG GLIBC_VERSION
27-
FROM ubuntu:22.04 as glibc-builder
43+
FROM ubuntu:${UBUNTU_VERSION} as glibc-builder
2844
2945
ARG GLIBC_VERSION
46+
ARG UBUNTU_VERSION
3047
ENV GLIBC_VERSION=${GLIBC_VERSION}
3148
3249
# Install build dependencies
@@ -85,16 +102,34 @@ jobs:
85102
CFLAGS="-I/home/builder/glibc-install/include" \
86103
LDFLAGS="-L/home/builder/glibc-install/lib"
87104
105+
# Add additional build dependencies for WavPack
106+
USER root
107+
RUN apt-get update && apt-get install -y \
108+
make \
109+
gcc \
110+
libtool \
111+
autoconf \
112+
&& rm -rf /var/lib/apt/lists/*
113+
88114
# Now build WavPack
89115
ARG WAVPACK_VERSION
90116
USER builder
91-
RUN wget https://github.com/dbry/WavPack/releases/download/${WAVPACK_VERSION}/wavpack-${WAVPACK_VERSION}.tar.bz2 \
117+
RUN set -x \
118+
&& echo "Downloading WavPack ${WAVPACK_VERSION}..." \
119+
&& wget https://github.com/dbry/WavPack/releases/download/${WAVPACK_VERSION}/wavpack-${WAVPACK_VERSION}.tar.bz2 \
92120
&& tar xjf wavpack-${WAVPACK_VERSION}.tar.bz2 \
93121
&& cd wavpack-${WAVPACK_VERSION} \
94-
&& ./configure --enable-shared --prefix=/home/builder/wavpack-install \
95-
--with-libtool-sysroot=/home/builder/glibc-install \
96-
&& make \
97-
&& make install
122+
&& echo "Running autoconf..." \
123+
&& autoreconf -fi \
124+
&& echo "Configuring WavPack..." \
125+
&& unset LD_LIBRARY_PATH \
126+
&& ./configure --enable-shared \
127+
--prefix=/home/builder/wavpack-install \
128+
> ../wavpack-configure.log 2>&1 || (cat ../wavpack-configure.log && false) \
129+
&& echo "Building WavPack..." \
130+
&& make > ../wavpack-make.log 2>&1 || (cat ../wavpack-make.log && false) \
131+
&& echo "Installing WavPack..." \
132+
&& make install > ../wavpack-install.log 2>&1 || (cat ../wavpack-install.log && false)
98133
99134
USER root
100135

0 commit comments

Comments
 (0)