Skip to content

Commit 3dad16c

Browse files
committed
CI: Add MariaDB 10.11 LTS to the build matrix
1 parent d021cbd commit 3dad16c

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
# db: on Linux, ci/setup.sh installs the specified packages
2929
# db: on MacOS, installs a Homebrew package use "[email protected]" to specify a version
3030

31+
- {os: ubuntu-22.04, ruby: '3.0', db: mariadb10.11}
32+
- {os: ubuntu-22.04, ruby: '2.7', db: mariadb10.11}
3133
- {os: ubuntu-22.04, ruby: '3.0', db: mariadb10.6}
3234
- {os: ubuntu-20.04, ruby: '2.7', db: mariadb10.6}
3335
- {os: ubuntu-20.04, ruby: '2.7', db: mysql80}

ci/mariadb1011.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -eux
3+
4+
apt purge -qq '^mysql*' '^libmysql*'
5+
rm -fr /etc/mysql
6+
rm -fr /var/lib/mysql
7+
8+
apt-key add support/C74CD1D8.asc
9+
add-apt-repository "deb https://downloads.mariadb.com/MariaDB/mariadb-10.11/repo/ubuntu $(lsb_release -cs) main"
10+
apt install -y -o Dpkg::Options::='--force-confnew' mariadb-server-10.11 libmariadb-dev

ci/setup.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ if [[ -n ${GITHUB_ACTIONS-} && -n ${DB-} && x$DB =~ ^xmariadb10.6 ]]; then
5454
CHANGED_PASSWORD_BY_RECREATE=true
5555
fi
5656

57+
# Install MariaDB 10.11 if DB=mariadb10.11
58+
if [[ -n ${GITHUB_ACTIONS-} && -n ${DB-} && x$DB =~ ^xmariadb10.11 ]]; then
59+
sudo bash ci/mariadb1011.sh
60+
CHANGED_PASSWORD_BY_RECREATE=true
61+
fi
62+
5763
# Install MySQL/MariaDB if OS=darwin
5864
if [[ x$OSTYPE =~ ^xdarwin ]]; then
5965
brew update > /dev/null

0 commit comments

Comments
 (0)