From eddc7c5dae2d5cdb7c1db1471ffb7c438760dee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Sat, 21 Feb 2026 10:53:11 +0100 Subject: [PATCH] Add GitHub action --- .github/workflows/ci.yml | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 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 0000000..fbd4a03 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,46 @@ +name: test +on: [push, pull_request] + +permissions: + contents: read + +jobs: + test: + name: Tests Build + strategy: + matrix: + mysql: + - "5.7" + - "8.0" + - "8.4" + runs-on: ubuntu-latest + + steps: + - name: Checkout mysql ${{ matrix.mysql }} + uses: actions/checkout@v6 + with: + repository: mysql/mysql-server + ref: ${{ matrix.mysql }} + path: mysql + - name: Checkout maxdiskusage + uses: actions/checkout@v6 + with: + path: mysql/plugin/maxdiskusage + - name: Setup Environment + run: | + sudo apt update + sudo apt install -y cmake gcc make libtirpc-dev + - name: Configure + run: | + mkdir -p mysql/build + cd mysql/build + cmake .. -DDOWNLOAD_BOOST=1 -DWITH_BOOST=${{ github.workspace }}/.deps/boost + - name: Build + run: | + cd mysql/build + make -j2 maxdiskusage + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: mysql-${{ matrix.mysql }}-maxdiskusage.so + path: mysql/build/plugin_output_directory/maxdiskusage.so