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 210215e commit a5e0651
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions .github/workflows/ninja.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
name: ninja
name: CMake
on: [push, pull_request]

jobs:
build:
strategy:
matrix:
os: [windows-latest,ubuntu-latest, macos-latest]
mysql-distribution: [mysql, mariadb]
runs-on: ${{ matrix.os }}
name: ${{ matrix.mysql-distribution }} / ${{ matrix.os }}
env:
COMMON_SYSBENCH_PARAMS: --mysql-user=root --mysql-socket=/tmp/mysql.sock --time=60 --table-size=100000 --report-interval=1 --histogram
name: Build/${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -22,11 +19,36 @@ jobs:
brew link --force mysql-client
- name: configure
run: cmake .
- name: Build
run: cmake --build . --config Release
- name: build package
run: cmake --build . --config Release --target package

- name: test_install
run: |
cmake --install . --config Release --prefix install_dir
- name: Archive build
uses: actions/upload-artifact@v3
with:
name: build-${{ matrix.os }}
retention-days: 1
path: |
install_dir
test:
strategy:
matrix:
os: [windows-latest,ubuntu-latest, macos-latest]
mysql-distribution: [mariadb, mysql]
needs: build
runs-on: ${{ matrix.os }}
env:
COMMON_SYSBENCH_PARAMS: --mysql-user=root --mysql-socket=/tmp/mysql.sock --time=60 --table-size=100000 --report-interval=1 --histogram
name: Test/${{ matrix.os }}/${{ matrix.mysql-distribution }}
steps:
- name: Download build
uses: actions/download-artifact@v3
with:
name: build-${{ matrix.os }}

- name: update environment (Windows)
if: contains(matrix.os, 'windows')
run: |
Expand Down

0 comments on commit a5e0651

Please sign in to comment.