Skip to content

Commit 272db71

Browse files
authored
[ci] Fix mariadb setup (#1269)
The previous setup steps are outdated and no longer necessary for a basic setup. See up-to-date documentation: https://mariadb.com/docs/server/mariadb-quickstart-guides/installing-mariadb-server-guide
1 parent c1d4856 commit 272db71

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -147,26 +147,14 @@ jobs:
147147
uses: ./.github/workflows/setup
148148
with:
149149
haxe: ${{ inputs.haxe }}
150-
- name: install mariadb
150+
- name: setup mariadb
151151
if: runner.os == 'Linux'
152152
run: |
153153
set -ex
154-
sudo rm -R /var/lib/mysql/
155-
curl -sSL https://downloads.mariadb.com/MariaDB/mariadb_repo_setup > mariadb_repo_setup
156-
curl -sSL https://downloads.mariadb.com/MariaDB/mariadb_repo_setup.sha256 > mariadb_repo_setup.sha256
157-
sha256sum --check mariadb_repo_setup.sha256
158-
sudo bash mariadb_repo_setup
159154
sudo apt-get update -qqy
160-
sudo apt-get remove -qqy mysql-common
161-
sudo apt-get autoremove -qqy
162155
sudo apt-get install -qqy mariadb-server
163-
- name: configure mariadb
164-
if: runner.os == 'Linux'
165-
run: |
166-
set -ex
167-
sudo systemctl unmask mysql.service
168-
sudo systemctl start mysql
169-
sudo mysql -u root -e "create database hxcpp; grant all privileges on hxcpp.* to hxcpp@localhost identified by 'hxcpp'; flush privileges;"
156+
sudo systemctl start mariadb
157+
sudo mariadb -u root -e "create database hxcpp; grant all privileges on hxcpp.* to hxcpp@localhost identified by 'hxcpp'; flush privileges;"
170158
- name: build
171159
run: haxe compile${{ inputs.arch }}.hxml
172160
- name: run

0 commit comments

Comments
 (0)