From 41057e4f0985abfb1015f937cedbeab3f3f8c07d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Mon, 8 May 2023 09:58:38 +0200 Subject: [PATCH 1/2] Add GitHub actions --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..279e8db2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI +on: [push, pull_request] + +jobs: + build: + strategy: + matrix: + os: [ ubuntu-22.04, ubuntu-20.04 ] + runs-on: ${{ matrix.os }} + name: Build on ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Autogen + run: ./autogen.sh + - name: Configure + run: ./configure + - name: Build + run: make + - name: MySQL version + run: mysql_config --version + - name: Sysbench version + run: ./src/sysbench --version + From 0139aa569fa13c6d6229405e2f0536fedcbd5c4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Mon, 8 May 2023 10:24:19 +0200 Subject: [PATCH 2/2] Run the test as well --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 279e8db2..c149cb04 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,4 +21,6 @@ jobs: run: mysql_config --version - name: Sysbench version run: ./src/sysbench --version + - name: Test + run: make test