Skip to content

Commit

Permalink
Remove nph from nimble deps. Install nph during nimble format task in…
Browse files Browse the repository at this point in the history
…stead.
  • Loading branch information
bhartnett committed Jun 26, 2024
1 parent 00d04d5 commit 52e30a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ jobs:
- name: Check nph formatting
if: runner.os == 'Linux' && matrix.branch == 'version-2-0'
run: |
nimble install -y --depsOnly
nph .
nimble format
git diff --exit-code
- name: Run tests
Expand Down
6 changes: 5 additions & 1 deletion rocksdb.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ skipDirs = @["examples", "tests"]
mode = ScriptMode.Verbose

### Dependencies
requires "nim >= 1.6", "results", "tempfile", "unittest2", "nph#head"
requires "nim >= 1.6", "results", "tempfile", "unittest2"

# Format only works with nim version 2
task format, "Format nim code using nph":
# Using the latest nph commit for now because the latest tagged version
# doesn't work with the latest nim 2 version
exec "nimble install nph@#head"
exec "nph ."

task clean, "Remove temporary files":
Expand Down

0 comments on commit 52e30a3

Please sign in to comment.