Skip to content

Commit

Permalink
ci: use balls to run tests
Browse files Browse the repository at this point in the history
Why build balls if you don't even use it?
  • Loading branch information
alaviss committed Nov 5, 2023
1 parent 2e53ea2 commit 8a889a7
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 8a889a7

Please sign in to comment.