Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 3 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,26 +147,14 @@ jobs:
uses: ./.github/workflows/setup
with:
haxe: ${{ inputs.haxe }}
- name: install mariadb
- name: setup mariadb
if: runner.os == 'Linux'
run: |
set -ex
sudo rm -R /var/lib/mysql/
curl -sSL https://downloads.mariadb.com/MariaDB/mariadb_repo_setup > mariadb_repo_setup
curl -sSL https://downloads.mariadb.com/MariaDB/mariadb_repo_setup.sha256 > mariadb_repo_setup.sha256
sha256sum --check mariadb_repo_setup.sha256
sudo bash mariadb_repo_setup
sudo apt-get update -qqy
sudo apt-get remove -qqy mysql-common
sudo apt-get autoremove -qqy
sudo apt-get install -qqy mariadb-server
- name: configure mariadb
if: runner.os == 'Linux'
run: |
set -ex
sudo systemctl unmask mysql.service
sudo systemctl start mysql
sudo mysql -u root -e "create database hxcpp; grant all privileges on hxcpp.* to hxcpp@localhost identified by 'hxcpp'; flush privileges;"
sudo systemctl start mariadb
sudo mariadb -u root -e "create database hxcpp; grant all privileges on hxcpp.* to hxcpp@localhost identified by 'hxcpp'; flush privileges;"
- name: build
run: haxe compile${{ inputs.arch }}.hxml
- name: run
Expand Down
Loading