Skip to content

Commit 28c168c

Browse files
komainu8abetomo
andauthored
Add install test for mariadb for debian 12 (mroonga#978)
Co-authored-by: Abe Tomoaki <abe@enzou.tokyo>
1 parent 0bdd6cb commit 28c168c

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.github/workflows/install.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ jobs:
5252
- image: "images:almalinux/9"
5353
package: percona-server-8.0
5454

55+
# Debian 12
56+
- image: "images:debian/12"
57+
package: mariadb
58+
5559
# Ubuntu 22.04
5660
- image: "images:ubuntu/22.04"
5761
package: mariadb
@@ -89,7 +93,7 @@ jobs:
8993
- name: Install Mroonga
9094
run: |
9195
case "${{ matrix.image }}" in
92-
images:ubuntu/*)
96+
images:ubuntu/* | images:debian/*)
9397
package_type=apt
9498
;;
9599
*)

packages/apt/install_test.sh

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,20 @@ set -exu
55
package=$1
66

77
sudo apt update
8-
sudo apt install -y -V software-properties-common lsb-release
9-
sudo add-apt-repository -y universe
10-
sudo add-apt-repository \
11-
"deb http://security.ubuntu.com/ubuntu $(lsb_release --short --codename)-security main restricted"
8+
sudo apt install -V -y lsb-release wget
129

13-
sudo add-apt-repository -y ppa:groonga/ppa
14-
sudo apt update
10+
distribution=$(lsb_release --id --short | tr 'A-Z' 'a-z')
11+
code_name=$(lsb_release --codename --short)
12+
13+
wget https://packages.apache.org/artifactory/arrow/${distribution}/apache-arrow-apt-source-latest-${code_name}.deb
14+
sudo apt install -y -V ./apache-arrow-apt-source-latest-${code_name}.deb
15+
rm -f apache-arrow-apt-source-latest-${code_name}.deb
16+
wget https://packages.groonga.org/${distribution}/groonga-apt-source-latest-${code_name}.deb
17+
sudo apt install -y -V ./groonga-apt-source-latest-${code_name}.deb
18+
rm -f groonga-apt-source-latest-${code_name}.deb
1519

20+
sudo apt update
1621
sudo apt install -V -y ${package}
22+
sudo apt install -y -V groonga-tokenizer-mecab
1723

1824
sudo mysql -e "SHOW ENGINES" | grep Mroonga

0 commit comments

Comments
 (0)