Skip to content

Commit

Permalink
Fixed config.
Browse files Browse the repository at this point in the history
  • Loading branch information
h3rald committed Aug 26, 2023
1 parent 66c2fd0 commit 348492b
Show file tree
Hide file tree
Showing 3 changed files with 13 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 --dynLibOverride:sqlite3 --opt:size litestore
run: nimble build -v -y --passL:-static -d:release --gcc.exe:musl-gcc --gcc.linkerexe:musl-gcc --mm:refc --opt:size 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 --dynLibOverride:sqlite3 --opt:size litestore
run: nimble build -v -y -d:release --mm:ref --opt:size 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 --dynLibOverride:sqlite3
run: nimble build -y -d:release --gcc.exe:musl-gcc --gcc.linkerexe:musl-gcc --mm:refc
14 changes: 10 additions & 4 deletions src/litestore.nim.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ amd64.linux.gcc.path = "/usr/local/bin"
amd64.linux.gcc.exe = "x86_64-linux-musl-gcc"
amd64.linux.gcc.linkerexe = "x86_64-linux-musl-gcc"

--mm = "refc"
--opt = "size"
--dynLibOverride = "sqlite3"
--threadAnalysis = "off"
mm:refc
opt:size

@if windows:
dynLibOverride:sqlite3_64
@else:
dynLibOverride:sqlite3
@end

threadAnalysis:off

0 comments on commit 348492b

Please sign in to comment.