From 272f8fb2664dc21a20827a73f6b078aac619522c Mon Sep 17 00:00:00 2001 From: Oz Tiram Date: Tue, 23 Jul 2024 16:06:29 +0200 Subject: [PATCH] switch to clang from brew --- .github/workflows/build.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8afa469..6a754c9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,9 +33,12 @@ jobs: run: brew update - name: install libs run: brew install pcre2 cmocka + - name: Install dependencies + run: | + brew install llvm + echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> $GITHUB_ENV + echo 'export LDFLAGS="-L/usr/local/opt/llvm/lib"' >> $GITHUB_ENV + echo 'export CPPFLAGS="-I/usr/local/opt/llvm/include"' >> $GITHUB_ENV - name: build run: | - cc --version - brew --prefix pcre2 - brew --prefix cmocka - cc -o mh -D VERSION=\"aa30377\" queue.c mh.c main.c -Wall $(pkg-config --cflags --libs libpcre2-8) + clang -o mh -D VERSION=\"aa30377\" queue.c mh.c main.c -Wall $(pkg-config --cflags --libs libpcre2-8)