correct mysql-host #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: gcc-ninja-CMake | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest] | |
mysql-version: [mysql-8.0, mariadb-11.1] | |
runs-on: ${{ matrix.os }} | |
name: Test with ${{ matrix.mysql-version }} on ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: seanmiddleditch/gha-setup-ninja@master | |
- name: configure | |
run: cmake . -GNinja -DCMAKE_C_COMPILER=gcc | |
- name: Build | |
run: cmake --build . | |
- name: test_install | |
run: | | |
cmake --install . --prefix install_dir | |
- name: update environment (Windows only) | |
if: contains(matrix.os, 'windows') | |
run: | | |
echo "$pwd\install_dir\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
cat $env:GITHUB_PATH | |
- name: update environment (non-Windows) | |
if: contains(matrix.os, 'ubuntu') | |
run: | | |
echo "$PWD/install_dir/bin" >> $GITHUB_PATH | |
cat $GITHUB_PATH | |
- name: actions-setup-mysql | |
uses: shogo82148/actions-setup-mysql@v1 | |
with: | |
mysql-version: ${{ matrix.mysql-version }} | |
my-cnf: | | |
innodb_log_file_size=2G | |
innodb_buffer_pool_size=512MB | |
max_allowed_packet=16MB | |
skip-log-bin | |
loose-enable-named-pipe | |
socket=${{ steps.setup-mysql.outputs.base-dir }}/tmp/mysql.sock | |
max_connections=1000 | |
- name: create database sbtest | |
run: mysql -uroot -e "create database sbtest" | |
- name: sysbench oltp_read_write prepare | |
run: sysbench oltp_read_write --mysql-user=root --mysql-host=127.0.0.1 --mysql-port=3306 --table-size=100000 prepare | |
- name: sysbench oltp_point_select run | |
run: sysbench oltp_point_select --mysql-user=root --mysql-socket=${{ steps.setup-mysql.outputs.base-dir }}/tmp/mysql.sock --time=30 --table-size=100000 --threads=4 --report-interval=1 --histogram run | |
- name: sysbench oltp_update_index run single thread | |
run: sysbench oltp_update_index --mysql-user=root --mysql-socket=${{ steps.setup-mysql.outputs.base-dir }}/tmp/mysql.sock --time=60 --table-size=100000 --threads=1 --report-interval=1 --histogram run | |
- name: sysbench oltp_update_index run | |
run: sysbench oltp_update_index --mysql-user=root --mysql-socket=${{ steps.setup-mysql.outputs.base-dir }}/tmp/mysql.sock --time=60 --table-size=100000 --threads=40 --report-interval=1 --histogram run | |
- name: sysbench oltp cleanup | |
run: sysbench oltp_read_write --mysql-host=127.0.0.1 --port=3306 --mysql-user=root cleanup | |
- name: fileio seqrewr prepare | |
run: sysbench fileio --file-block-size=4096 --file-test-mode=seqrewr --file-fsync-mode=fdatasync --file-fsync-all=on --file-num=1 --report-interval=1 --time=60 --histogram prepare | |
- name: fileio seqrewr run | |
run: sysbench fileio --file-block-size=4096 --file-test-mode=seqrewr --file-fsync-mode=fdatasync --file-fsync-all=on --file-num=1 --report-interval=1 --time=60 --histogram run | |