Skip to content

Commit

Permalink
Add support for arm runners
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Jan 18, 2025
1 parent cef7403 commit 230aa1b
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 2 deletions.
Binary file not shown.
Binary file removed deps/24.04/libdeflate-dev_1.19-1build1_amd64.deb
Binary file not shown.
Binary file not shown.
Binary file not shown.
10 changes: 8 additions & 2 deletions scripts/build-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ install_pkg() {
pkg_dir=$1
(
cd "$pkg_dir" || exit 1
cp /usr/share/automake-*/config.guess ./config.guess
cp /usr/share/automake-*/config.sub ./config.sub
fix_config_files
sudo ./configure --prefix=/usr
sudo make -j"$(nproc)"
sudo make install DESTDIR="$DESTDIR"
Expand All @@ -27,13 +26,20 @@ add_openssl() {
tar -xzf /tmp/openssl.tar.gz -C /tmp
(
cd /tmp/openssl-1.0.2u || exit 1
fix_config_files
./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib/openssl-1.0 shared zlib-dynamic
make depend
sudo make -j"$(nproc)"
sudo make install INSTALL_PREFIX="$DESTDIR"
)
}

fix_config_files() {
for conf_file in config.guess config.sub; do
find . -name "$conf_file" -exec cp /usr/share/automake-*/"$conf_file" {} \;
done
}

mode="${1:-all}"
DESTDIR="${2:-}"

Expand Down
8 changes: 8 additions & 0 deletions scripts/build-extensions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ build_extension() {
(
cd "$source_dir" || exit
phpize
fix_config_files
sudo ./configure "${args[@]}" --with-php-config="$install_dir"/bin/php-config
sudo make -j"$(nproc)"
sudo make install
Expand All @@ -26,6 +27,7 @@ build_lib() {
mkdir "$install_dir"/lib/"$lib"
(
cd "$source_dir" || exit
fix_config_files
sudo ./configure --prefix="$install_dir"/lib/"$lib" "$@"
sudo make -j"$(nproc)"
sudo make install
Expand Down Expand Up @@ -140,6 +142,12 @@ add_redis() {
build_extension redis /tmp/redis-"$REDIS_VERSION" extension 20 --enable-redis --enable-redis-igbinary
}

fix_config_files() {
for conf_file in config.guess config.sub; do
find . -name "$conf_file" -exec cp /usr/share/automake-*/"$conf_file" {} \;
done
}

PHP_VERSION=${PHP_VERSION:-'5.3'}
APCU_VERSION='4.0.11'
AMQP_VERSION='1.9.3'
Expand Down

0 comments on commit 230aa1b

Please sign in to comment.