Skip to content

Commit

Permalink
Add ubuntu-24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Oct 15, 2024
1 parent fd7c88b commit b8a26b5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, ubuntu-20.04, windows-2022, windows-2019]
os: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, windows-2022, windows-2019]
php: ['5.4', '5.5', '5.6', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '7.2.11', '7.2.12', '8.1.9', '8.2', '8.3']
exclude:
- os: windows-2019
Expand Down Expand Up @@ -51,6 +51,10 @@ jobs:
php: 7.2.11
- os: ubuntu-22.04
php: 7.2.12
- os: ubuntu-24.04
php: 7.2.11
- os: ubuntu-24.04
php: 7.2.12

steps:
- name: Checkout
Expand Down
1 change: 1 addition & 0 deletions lib/apt-install-php-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ fi

if [[ $version = '5.6' ]] \
|| [[ `echo "$version >= 8.2" | bc` == 1 ]] \
|| [[ $release = 'noble' && `echo "$version < 8.1" | bc` == 1 ]] \
|| [[ $release = 'jammy' && `echo "$version < 8.1" | bc` == 1 ]] \
|| [[ $release = 'focal' && `echo "$version < 7.4 || $version >= 8.0" | bc` == 1 ]] \
|| [[ $release = 'bionic' && `echo "$version < 7.4 || $version >= 8.0" | bc` == 1 ]]
Expand Down
6 changes: 3 additions & 3 deletions lib/phpenv-install-php-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ fi
sudo apt-fast update

# sudo apt-get purge 'php*'
sudo apt-fast install -y libcurl4-nss-dev libjpeg-dev re2c libxml2-dev \
sudo apt-fast install -y libjpeg-dev re2c libxml2-dev \
libtidy-dev libxslt1-dev libmcrypt-dev libreadline-dev libfreetype6-dev \
libonig-dev zlib1g-dev

if [ $release == 'bionic' ]
then
sudo apt-fast install -y mysql-client
sudo apt-fast install -y mysql-client libcurl4-nss-dev
fi
if [ $release == 'focal' ] || [ $release == 'jammy' ]
then
sudo apt-fast install -y libzip-dev libmariadb-dev libfreetype-dev
sudo apt-fast install -y libzip-dev libmariadb-dev libfreetype-dev libcurl4-nss-dev
fi

sudo ln -s /usr/include/x86_64-linux-gnu/curl /usr/local/include/curl
Expand Down

0 comments on commit b8a26b5

Please sign in to comment.