From 104378acdef3b1d917ad4b8e6872a9cece78886a Mon Sep 17 00:00:00 2001 From: Miles Granger Date: Thu, 4 Apr 2024 22:13:42 +0200 Subject: [PATCH] fixup --- .github/workflows/CI.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e35db40..6999fc8 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -33,7 +33,7 @@ jobs: if: runner.os == 'macOS' run: | echo "MACOSX_DEPLOYMENT_TARGET=$(sw_vers -productVersion)" >> $GITHUB_ENV - brew install ninja gcc + brew install ninja - name: Install packages (Windows) if: runner.os == 'Windows' @@ -47,5 +47,16 @@ jobs: - uses: rui314/setup-mold@v1 + - name: Set Env + shell: bash + # Cannot set dynamic link path from build.rs + # xref: https://github.com/rust-lang/cargo/issues/4895 + run: | + echo "BLOSC2_INSTALL_PREFIX=$(pwd)/build" >> $GITHUB_ENV + echo "LD_LIBRARY_PATH=$BLOSC2_INSTALL_PREFIX/lib64:$BLOSC2_INSTALL_PREFIX/lib" >> $GITHUB_ENV + echo "DYLD_FALLBACK_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV + - name: Test - run: cargo test --lib + shell: bash + run: cargo test + env: