From e9c9bdeaa53b3ff7cfc4aa7a5c7e7681d3420985 Mon Sep 17 00:00:00 2001 From: Yifei Kong Date: Wed, 17 Apr 2024 16:16:15 +0800 Subject: [PATCH] Try to fix zstd path one more time! --- .github/workflows/build-and-test-make.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test-make.yml b/.github/workflows/build-and-test-make.yml index 1c7c634b..b0b93c27 100644 --- a/.github/workflows/build-and-test-make.yml +++ b/.github/workflows/build-and-test-make.yml @@ -94,8 +94,10 @@ jobs: cd zstd-1.5.6 make mkdir -p ${{ runner.temp }}/zstd/lib - # move libzstd to temp + mkdir -p ${{ runner.temp }}/zstd/include + # move libzstd to runner.temp cp lib/libzstd.a lib/libzstd.so.1.5.6 lib/libzstd.mk lib/libzstd.pc lib/libzstd.pc.in ${{ runner.temp }}/zstd/lib/ + cp lib/zstd.h ${{ runner.temp }}/zstd/include/ - name: Run configure script run: | @@ -296,7 +298,7 @@ jobs: - name: Run configure script run: | mkdir ${{ runner.temp }}/install - ./configure --prefix=${{ runner.temp }}/install + ./configure LDFLAGS="-L$(brew --prefix zstd)/lib" CPPFLAGS="-I$(brew --prefix zstd)/include" --prefix=${{ runner.temp }}/install # Cache the build of BoringSSL, which is the longest part of the build # We must cache the .zip as well, otherwise the Makefile will