From cbf65c9f0e0dd9e23a3857fac7ffe282ad8c220f Mon Sep 17 00:00:00 2001 From: "Felix Wischke (65278)" Date: Thu, 25 Aug 2022 17:43:48 +0200 Subject: [PATCH] .github/workflows: macosx --- .github/workflows/test-pr.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml index 90fb1a0..c1f1bf9 100644 --- a/.github/workflows/test-pr.yml +++ b/.github/workflows/test-pr.yml @@ -96,3 +96,40 @@ jobs: make install src/schaufel -c 1 -i f -p 1 -o f -f src/main.c -F main.c diff -q src/main.c main.c + pr-test-macosx: + name: Test Schaufel on MacOSX + runs-on: ${{ matrix.os }} + strategy: + matrix: + # also test 'latest', eventually this will be upgraded to a newer version and might fail early + os: [macos-11, macos12, macos-latest] + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Versions + run: echo "${{ matrix.os }}" + + - name: Install Deps + run: brew install gcc autoconf automake libtool libconfig librdkafka hiredis libpq json-c + + # do the actual compilation + - name: Configure + run: autoreconf --force -i && ./configure + + - name: Run testsuite + run: make test + + - name: Make + run: make + + # install schaufel + - name: Install Schaufel + run: sudo make install + + - name: Run simple schaufel test + run: src/schaufel -c 1 -i f -p 1 -o f -f src/main.c -F main.c + + - name: test output + run: diff -q src/main.c main.c