Skip to content

Commit

Permalink
Add new versions for testing on Github Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pali committed Aug 13, 2023
1 parent e81937d commit a352fc8
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
- 5.32.0
- 5.34.0
- 5.36.0
- 5.38.0
- system
dbi-version:
- 1.627
Expand All @@ -50,6 +51,7 @@ jobs:
- mysql-5.0.96
- mysql-5.1.30
- mysql-5.1.72
- mysql-5.1.73
- mysql-5.5.8
- mysql-5.5.47
- mysql-5.5.49
Expand All @@ -71,6 +73,7 @@ jobs:
- mysql-5.6.41
- mysql-5.6.43
- mysql-5.6.45
- mysql-5.6.51
- mysql-5.7.8-rc
- mysql-5.7.11
- mysql-5.7.12
Expand All @@ -83,6 +86,7 @@ jobs:
- mysql-5.7.23
- mysql-5.7.25
- mysql-5.7.27
- mysql-5.7.43
- mysql-8.0.0-dmr
- mysql-8.0.1-dmr
- mysql-8.0.2-dmr
Expand All @@ -95,6 +99,12 @@ jobs:
- mysql-8.0.15
- mysql-8.0.16
- mysql-8.0.17
- mysql-8.0.20
- mysql-8.0.21
- mysql-8.0.22
- mysql-8.0.33
- mysql-8.0.34
- mysql-8.1.0
- mariadb-5.5.40
- mariadb-5.5.44
- mariadb-5.5.47
Expand All @@ -109,6 +119,7 @@ jobs:
- mariadb-5.5.61
- mariadb-5.5.63
- mariadb-5.5.65
- mariadb-5.5.68
- mariadb-10.0.14
- mariadb-10.0.20
- mariadb-10.0.23
Expand All @@ -132,6 +143,7 @@ jobs:
- mariadb-10.1.37
- mariadb-10.1.38
- mariadb-10.1.41
- mariadb-10.1.48
- mariadb-10.2.0
- mariadb-10.2.1
# Incompatible, broken mysql_config
Expand All @@ -154,6 +166,7 @@ jobs:
- mariadb-10.2.21
- mariadb-10.2.22
- mariadb-10.2.26
- mariadb-10.2.44
- mariadb-10.3.0
- mariadb-10.3.1
- mariadb-10.3.2
Expand All @@ -166,6 +179,7 @@ jobs:
- mariadb-10.3.11
- mariadb-10.3.12
- mariadb-10.3.17
- mariadb-10.3.39
- mariadb-10.4.0
- mariadb-10.4.1
- mariadb-10.4.2
Expand Down Expand Up @@ -213,6 +227,12 @@ jobs:
- mariadbconc-3.1.1
- mariadbconc-3.1.2
- mariadbconc-3.1.3
- mariadbconc-3.1.10
- mariadbconc-3.1.21
- mariadbconc-3.2.0
- mariadbconc-3.2.7
- mariadbconc-3.3.0
- mariadbconc-3.3.5
- system
- same-as-server
include:
Expand Down Expand Up @@ -338,10 +358,11 @@ jobs:
5.6.[12]*) SANDBOX_URL=https://dev.mysql.com/get/mysql-$VERSION-linux-glibc2.5-x86_64.tar.gz ;;
5.6.3[0123456]*) SANDBOX_URL=https://dev.mysql.com/get/mysql-$VERSION-linux-glibc2.5-x86_64.tar.gz ;;
5.6.*) SANDBOX_URL=https://dev.mysql.com/get/mysql-$VERSION-linux-glibc2.12-x86_64.tar.gz ;;
5.7.19*|5.7.[2]*) SANDBOX_URL=https://dev.mysql.com/get/mysql-$VERSION-linux-glibc2.12-x86_64.tar.gz ;;
5.7.19*|5.7.[234]*) SANDBOX_URL=https://dev.mysql.com/get/mysql-$VERSION-linux-glibc2.12-x86_64.tar.gz ;;
5.7.*) SANDBOX_URL=https://dev.mysql.com/get/mysql-$VERSION-linux-glibc2.5-x86_64.tar.gz ;;
8.0.?-*|8.0.11) SANDBOX_URL=https://dev.mysql.com/get/mysql-$VERSION-linux-glibc2.12-x86_64.tar.gz ;;
8.0.*) SANDBOX_URL=https://dev.mysql.com/get/mysql-$VERSION-linux-glibc2.12-x86_64.tar.xz ;;
8.1.*) SANDBOX_URL=https://dev.mysql.com/get/mysql-$VERSION-linux-glibc2.28-x86_64.tar.xz ;;
*) echo "Unsupported MySQL version '$VERSION'"; exit 1 ;;
esac
SANDBOX_CACHE_FILE="$HOME/cache/$(basename "$SANDBOX_URL")"
Expand Down Expand Up @@ -376,8 +397,13 @@ jobs:
esac
CONC_FILE="$HOME/cache/$(basename "$CONC_URL")"
elif [ "$CONC_DB" = "MariaDB" ]; then
CONC_URL=https://downloads.mariadb.com/Connectors/c/connector-c-${CONC_VERSION/-*/}/mariadb-connector-c-$CONC_VERSION-linux-x86_64.tar.gz
CONC_FILE="$HOME/cache/mariadb-connector-c-$CONC_VERSION-linux-x86_64.tar.gz"
case "$CONC_VERSION" in
3.0.*) CONC_URL=https://downloads.mariadb.com/Connectors/c/connector-c-${CONC_VERSION/-*/}/mariadb-connector-c-$CONC_VERSION-linux-x86_64.tar.gz ;;
3.1.[01234567]) CONC_URL=https://downloads.mariadb.com/Connectors/c/connector-c-${CONC_VERSION/-*/}/mariadb-connector-c-$CONC_VERSION-linux-x86_64.tar.gz ;;
3.*) CONC_URL=https://downloads.mariadb.com/Connectors/c/connector-c-${CONC_VERSION/-*/}/mariadb-connector-c-$CONC_VERSION-ubuntu-focal-amd64.tar.gz
*) CONC_URL=https://downloads.mariadb.com/Connectors/c/connector-c-${CONC_VERSION/-*/}/mariadb-connector-c-$CONC_VERSION-linux-x86_64.tar.gz ;;
esac
CONC_FILE="$HOME/cache/$(basename "$CONC_URL")"
elif [ -n "$CONC_DB" ]; then
echo "Unsupported Connector/C '$CONC_DB'"; exit 1
fi
Expand All @@ -396,6 +422,12 @@ jobs:
unxz < "$SANDBOX_FILE" | gzip -1 > "${SANDBOX_FILE%.xz}.gz"
SANDBOX_FILE="${SANDBOX_FILE%.xz}.gz"
fi
# MySQL::Sandbox does not support mysql 8.1+ versions, so rename file to 8.0.0
if [ "$DB" = "MySQL" ] && [[ $VERSION =~ ^8\. ]] && ! [[ $VERSION =~ ^8\.0 ]]; then
RENAMED_FILE="$(dirname "$SANDBOX_FILE")/mysql-8.0.0-real-$VERSION.tar.gz"
ln -s "$SANDBOX_FILE" "$RENAMED_FILE"
SANDBOX_FILE="$RENAMED_FILE"
fi
make_sandbox --export_binaries "$SANDBOX_FILE" -- --sandbox_port 3310 --sandbox_directory msb --no_confirm --verbose $SANDBOX_OPTIONS || exit 1
sed 's/-lzlib //g' -i $SANDBOX_HOME/*/bin/mysql_config
rm -f $SANDBOX_HOME/*/bin/mariadb_config
Expand Down

0 comments on commit a352fc8

Please sign in to comment.