From 7c67a92725df3efd8a51ac5e1d398d37991d88c8 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 22 May 2024 14:14:05 +0100 Subject: [PATCH] CI: MacOS: Fix failure to find libyaml --- .github/workflows/ci-devel.yaml | 16 ++++++++++++---- .github/workflows/ci.yaml | 16 ++++++++++++---- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-devel.yaml b/.github/workflows/ci-devel.yaml index 3c59c3f..9905a00 100644 --- a/.github/workflows/ci-devel.yaml +++ b/.github/workflows/ci-devel.yaml @@ -49,9 +49,13 @@ jobs: run: brew update && brew install libyaml - name: build - run: make + run: LDFLAGS="-L$(brew --prefix)/lib" + CFLAGS="-I$(brew --prefix)/include" + make - name: test - run: make test + run: LDFLAGS="-L$(brew --prefix)/lib" + CFLAGS="-I$(brew --prefix)/include" + make test mac-clang: runs-on: macos-latest steps: @@ -60,6 +64,10 @@ jobs: run: brew update && brew install libyaml - name: build - run: make CC=clang + run: LDFLAGS="-L$(brew --prefix)/lib" + CFLAGS="-I$(brew --prefix)/include" + make CC=clang - name: test - run: make test CC=clang + run: LDFLAGS="-L$(brew --prefix)/lib" + CFLAGS="-I$(brew --prefix)/include" + make test CC=clang diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 72bafcb..653115f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -52,9 +52,13 @@ jobs: run: brew update && brew install libyaml - name: build - run: make + run: LDFLAGS="-L$(brew --prefix)/lib" + CFLAGS="-I$(brew --prefix)/include" + make - name: test - run: make test + run: LDFLAGS="-L$(brew --prefix)/lib" + CFLAGS="-I$(brew --prefix)/include" + make test mac-clang: runs-on: macos-latest steps: @@ -63,6 +67,10 @@ jobs: run: brew update && brew install libyaml - name: build - run: make CC=clang + run: LDFLAGS="-L$(brew --prefix)/lib" + CFLAGS="-I$(brew --prefix)/include" + make CC=clang - name: test - run: make test CC=clang + run: LDFLAGS="-L$(brew --prefix)/lib" + CFLAGS="-I$(brew --prefix)/include" + make test CC=clang