From ab41fe69bfd2428d0a67b645179867d97437a7a9 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Thu, 21 Dec 2023 10:54:08 +0200 Subject: [PATCH] Fix conditional --- .github/workflows/check.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f3bea9746b..ac0f98e6f1 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -105,12 +105,12 @@ jobs: echo "DYLD_LIBRARY_PATH=${{ github.workspace }}/dist/Debug/lib" >> "$GITHUB_ENV" echo "${{ github.workspace }}/dist/Debug/lib" >> "$GITHUB_PATH" + # On MacOS runners, the DYLD_LIBRARY_PATH is sometimes not set for some reason. + # Work around this. - name: Run tests and determine coverage run: | - # On MacOS runners, the DYLD_LIBRARY_PATH is sometimes not set for some reason. - # Work around this. env | grep LIBRARY - [ -x "$DYLD_LIBRARY_PATH" ] || export DYLD_LIBRARY_PATH="${{ github.workspace }}/dist/Debug/lib" + [ -n "$DYLD_LIBRARY_PATH" ] || export DYLD_LIBRARY_PATH="${{ github.workspace }}/dist/Debug/lib" env | grep LIBRARY cargo +${{ matrix.rust-toolchain }} llvm-cov nextest --features ci --all-targets --no-fail-fast --lcov --output-path lcov.info