From 8a889a73d035ae4166d56eca1c8381d0403b63cc Mon Sep 17 00:00:00 2001 From: Leorize Date: Sun, 5 Nov 2023 16:51:31 -0600 Subject: [PATCH] ci: use balls to run tests Why build balls if you don't even use it? --- .github/workflows/ci.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e0201f..ed91b8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -123,11 +123,18 @@ jobs: echo "remove nim's config.nims...?" ls -l `dirname \`which nim\``/../config/ rm `dirname \`which nim\``/../config/config.nims || true - if [ "${{ matrix.os }}" == "macos-latest" ]; then - nim c --define:libgit2Lib="$(pwd)/libgit2/build/libgit2.dylib" --passC:"-I$(pwd)/libgit2/include" --define:ssl --define:release --run tests/test.nim - else - nim c --define:libgit2Lib="$(pwd)/libgit2/build/libgit2.so" --passC:"-I$(pwd)/libgit2/include" --define:ssl --define:release --run tests/test.nim - fi + + soExt= + case "$RUNNER_OS" in + macOS) + soExt=dylib + ;; + Linux) + soExt=so + esac + libgit2Lib=$(pwd)/libgit2/build/libgit2.$soExt + + $HOME/balls --define:libgit2Lib="$libgit2Lib" --passC:"-I$(pwd)/libgit2/include" --define:ssl - name: Build docs if: ${{ matrix.docs }} == 'true'