Skip to content

Commit

Permalink
Windows port - more mingw tests
Browse files Browse the repository at this point in the history
run oltp against MySQL 8.0
  • Loading branch information
vaintroub committed Jul 28, 2023
1 parent 7c128ea commit 7ac4840
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/mingw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ jobs:
strategy:
matrix:
os: [windows-latest]
mysql-version: [mysql-8.0, mariadb-10.6, mariadb-11.1]
runs-on: ${{ matrix.os }}
name: Build on ${{ matrix.os }}
name: Test with ${{ matrix.mysql-version }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -19,3 +20,30 @@ jobs:
run: .\src\sysbench.exe --version
- name: Sysbench help
run: .\src\sysbench.exe --help
- name: test_install
run: |
cmake --install . --prefix install_dir
echo "$pwd\install_dir\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
cat $env:GITHUB_PATH
- name: actions-setup-mysql
uses: shogo82148/[email protected]
with:
distribution: ${{ matrix.mysql-version }}
my-cnf: |
innodb_log_file_size=2G
innodb_buffer_pool_size=512MB
max_allowed_packet=16MB
skip-log-bin
enable-named-pipe
socket=MySQL
- 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 --table-size=100000 prepare
- name: sysbench oltp_point_select run
run: sysbench oltp_point_select --mysql-user=root --mysql-socket=MySQL --time=30 --table-size=100000 --threads=4 --report-interval=1 --histogram run
- name: sysbench oltp_update_index run
run: sysbench oltp_update_index --mysql-user=root --mysql-socket=MySQL --time=30 --table-size=100000 --threads=40 --report-interval=1 --histogram run
- name: sysbench oltp cleanup
run: sysbench oltp_read_write --mysql-user=root cleanup

0 comments on commit 7ac4840

Please sign in to comment.