Skip to content

Commit

Permalink
Fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
h3rald committed Jan 6, 2024
1 parent be4226e commit d57b7bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/add-artifacts-to-current-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ jobs:

# Build for Linux
- name: Build (Linux)
run: nimble build -v -y --passL:-static -d:release --gcc.exe:musl-gcc --gcc.linkerexe:musl-gcc --mm:refc --opt:size litestore
run: nimble build -v -y --passL:-static -d:release --gcc.exe:musl-gcc --gcc.linkerexe:musl-gcc --mm:refc --opt:size -d:ssl litestore
if: matrix.os == 'ubuntu-latest'

# Build for macOS/Windows
- name: Build (macOS, Windows)
shell: bash
run: nimble build -v -y -d:release --mm:refc --opt:size litestore
run: nimble build -v -y -d:release --mm:refc --opt:size -d:ssl litestore
if: matrix.os == 'macos-latest' || matrix.os == 'windows-latest'

# Import admin directory and create default db
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
sh init.sh -y
- name: Build
run: nimble build -y -d:release --gcc.exe:musl-gcc --gcc.linkerexe:musl-gcc --mm:refc
run: nimble build -y -d:release --gcc.exe:musl-gcc --gcc.linkerexe:musl-gcc --mm:refc -d:ssl
8 changes: 4 additions & 4 deletions src/litestorepkg/lib/jwt.nim
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import std/[
openssl, base64, strutils, json, times, pegs, sequtils
openssl, base64, strutils, macros, json, times, pegs, sequtils
]
import types

when defined(windows) and defined(amd64):
{.passL: "-static -L./src/litestorepkg/vendor/openssl/windows -lssl -lcrypto -lbcrypt".}
{.passL: "-static -L"&getProjectPath()&"/litestorepkg/vendor/openssl/windows -lssl -lcrypto -lbcrypt".}
elif defined(linux) and defined(amd64):
{.passL: "-static -L./src/litestorepkg/vendor/openssl/linux -lssl -lcrypto".}
{.passL: "-static -L"&getProjectPath()&"/litestorepkg/vendor/openssl/linux -lssl -lcrypto".}
elif defined(macosx) and defined(amd64):
{.passL: "-Bstatic -L./src/litestorepkg/vendor/openssl/macosx -lssl -lcrypto -Bdynamic".}
{.passL: "-Bstatic -L"&getProjectPath()&"/litestorepkg/vendor/openssl/macosx -lssl -lcrypto -Bdynamic".}


proc EVP_PKEY_new(): EVP_PKEY {.cdecl, importc.}
Expand Down

0 comments on commit d57b7bb

Please sign in to comment.