From 545f543bedfa6799da02c2e03396c1dfe49ba401 Mon Sep 17 00:00:00 2001 From: Henning Gerhardt Date: Tue, 21 Jan 2025 19:11:19 +0100 Subject: [PATCH] Adjust MacOS build --- .github/workflows/ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a79553..81d22ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -138,7 +138,19 @@ jobs: CPP: clang++ steps: - uses: actions/checkout@v4 - - name: Build + - name: Setup + run: | + brew install pocl + - name: Build GitHub development version + run: | + make -C src -f Makefile.macOS -j "$(sysctl -n hw.ncpu)" CC=${CC} CPP=${CPP} CFLAGS="-O3 -Wall $(pkg-config --cflags pocl)" LDFLAGS="$(pkg-config --libs pocl)" + - name: Test + run: | + ./mfakto -d 11 + - name: Cleanup build for user artifact + run: | + make -C src clean + - name: Build user artifact without pocl dependency run: | make -C src -f Makefile.macOS -j "$(sysctl -n hw.ncpu)" CC=${CC} CPP=${CPP} CFLAGS="-O3 -Wall" - name: Upload build artifact