Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vaintroub committed Sep 6, 2023
1 parent c278916 commit ee9b803
Showing 1 changed file with 61 additions and 5 deletions.
66 changes: 61 additions & 5 deletions .github/workflows/ninja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
- name: install client drivers (macOS)
if: contains(matrix.os, 'macos')
run : |
HOMEBREW_NO_AUTO_UPDATE=1 brew install mysql-client
HOMEBREW_NO_AUTO_UPDATE=1 brew install mysql-client libpq
brew link --force mysql-client
- name: configure
run: cmake .
run: cmake . -DWITH_PGSQL=1
- name: build package
run: cmake --build . --config Release --target package

Expand Down Expand Up @@ -50,6 +50,7 @@ jobs:
uses: actions/download-artifact@v3
with:
name: build-${{ matrix.os }}

- name: chmod +x bin/sysbench
shell: bash
if: ${{ !contains(matrix.os, 'windows') }}
Expand All @@ -60,9 +61,8 @@ jobs:
- name: install client drivers (macOS)
if: contains(matrix.os, 'macos')
run : |
HOMEBREW_NO_AUTO_UPDATE=1 brew install mysql-client
brew link --force mysql-client
HOMEBREW_NO_AUTO_UPDATE=1 brew install pqsql
- name: update environment (Windows)
if: contains(matrix.os, 'windows')
run: |
Expand Down Expand Up @@ -129,3 +129,59 @@ jobs:
- name: fileio seqrewr run fsync
run: sysbench fileio --file-block-size=4096 --file-test-mode=seqrewr --file-fsync-mode=fsync --file-fsync-all=on --file-num=1 --report-interval=1 --time=30 --histogram run

test-postgresql:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
needs: build
runs-on: ${{ matrix.os }}
env:
COMMON_SYSBENCH_PARAMS: --db-driver=pgsql --pgsql-password=sbtest --time=60 --table-size=100000 --threads=1 --report-interval=1 --histogram
name: Test/${{ matrix.os }}/postgresql
steps:
- name: Download build
uses: actions/download-artifact@v3
with:
name: build-${{ matrix.os }}

- name: chmod +x bin/sysbench
shell: bash
if: ${{ !contains(matrix.os, 'windows') }}
run: |
ls -l bin
chmod +x bin/sysbench
- name: install client drivers (macOS)
if: contains(matrix.os, 'macos')
run : |
HOMEBREW_NO_AUTO_UPDATE=1 brew install mysql-client libpq
- name: update environment (Windows)
if: contains(matrix.os, 'windows')
run: |
echo "$pwd\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
cat $env:GITHUB_PATH
- name: update environment (non-Windows)
if: ${{ !contains(matrix.os, 'windows') }}
run: |
echo "$PWD/bin" >> $GITHUB_PATH
cat $GITHUB_PATH
echo "LUA_PATH=$PWD/share/sysbench/?.lua" >> $GITHUB_ENV
- name: actions-setup-pgsql
uses: ikalnytskyi/action-setup-postgres@v4
with:
username: sbtest
password: sbtest
database: sbtest
- name: sysbench pgsql oltp_update_index prepare
run: sysbench oltp_update_index ${{ env.COMMON_SYSBENCH_PARAMS }} prepare
- name: sysbench pgsql oltp_point_select run
run: sysbench oltp_point_select ${{ env.COMMON_SYSBENCH_PARAMS }} --threads=10 run
- name: sysbench pgsql oltp_update_index run
run: sysbench oltp_update_index ${{ env.COMMON_SYSBENCH_PARAMS }} run
- name: sysbench pgsql oltp_update_index run 40 threads
run: sysbench oltp_update_index ${{ env.COMMON_SYSBENCH_PARAMS }} --threads=40 run
- name: sysbench oltp_update_index cleanup
run: sysbench oltp_update_index ${{ env.COMMON_SYSBENCH_PARAMS }} cleanup

0 comments on commit ee9b803

Please sign in to comment.