From 4bfeec2301d6d887c50e0a7e2bdefb7553e46877 Mon Sep 17 00:00:00 2001 From: Billy Chan Date: Fri, 2 Aug 2024 17:42:49 +0800 Subject: [PATCH] CI: update DB versions --- .github/workflows/rust.yml | 4 ++-- build-tools/docker-compose.yml | 11 +++++++++++ build-tools/docker-create.sh | 10 ++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f8ba95309..0836b0e5c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -392,7 +392,7 @@ jobs: strategy: fail-fast: false matrix: - version: [10.6] + version: [11.4] runtime: [actix] tls: [native-tls] services: @@ -441,7 +441,7 @@ jobs: strategy: fail-fast: false matrix: - version: [14, 15, 16] + version: [14, 16] runtime: [tokio] tls: [native-tls] services: diff --git a/build-tools/docker-compose.yml b/build-tools/docker-compose.yml index 71388959a..a2c0ae7db 100644 --- a/build-tools/docker-compose.yml +++ b/build-tools/docker-compose.yml @@ -5,6 +5,17 @@ services: # MariaDB # + mariadb_11_4: + image: mariadb:11.4 + ports: + - 3306 + environment: + MYSQL_DB: mysql + MYSQL_USER: sea + MYSQL_PASSWORD: sea + MYSQL_ALLOW_EMPTY_PASSWORD: yes + MYSQL_ROOT_PASSWORD: root + mariadb_10_6: image: mariadb:10.6 ports: diff --git a/build-tools/docker-create.sh b/build-tools/docker-create.sh index 8d22ee1e7..aa86123c0 100644 --- a/build-tools/docker-create.sh +++ b/build-tools/docker-create.sh @@ -11,6 +11,16 @@ # Setup MariaDB +docker run \ + --name "mariadb-11.4" \ + --env MYSQL_DB="mysql" \ + --env MYSQL_USER="sea" \ + --env MYSQL_PASSWORD="sea" \ + --env MYSQL_ALLOW_EMPTY_PASSWORD="yes" \ + --env MYSQL_ROOT_PASSWORD="root" \ + -d -p 3306:3306 mariadb:11.4 +docker stop "mariadb-11.4" + docker run \ --name "mariadb-10.6" \ --env MYSQL_DB="mysql" \