Skip to content

Commit

Permalink
stop testing Nim pre-1.6 in CI (#81)
Browse files Browse the repository at this point in the history
* stop testing Nim pre-1.6 in CI

* simplify nimble file
  • Loading branch information
tersec authored May 8, 2023
1 parent c4fefea commit 757c6d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
cpu: amd64
#- os: windows
#cpu: i386
branch: [version-1-2, version-1-4, version-1-6, devel]
branch: [version-1-6, devel]
include:
- target:
os: linux
Expand Down
10 changes: 2 additions & 8 deletions web3.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description = "This is the humble begginings of library similar to web3.[js|py
license = "MIT or Apache License 2.0"

### Dependencies
requires "nim >= 1.2.0"
requires "nim >= 1.6.0"
requires "chronicles"
requires "chronos"
requires "eth"
Expand All @@ -22,16 +22,10 @@ proc test(args, path: string) =
if not dirExists "build":
mkDir "build"

let styleCheckStyle =
if (NimMajor, NimMinor) < (1, 6):
"hint"
else:
"error"

exec "nim " & getEnv("TEST_LANG", "c") & " " & getEnv("NIMFLAGS") & " " & args &
" --outdir:build -r --skipParentCfg" &
" --warning[ObservableStores]:off --warning[GcUnsafe2]:off" &
" --styleCheck:usages --styleCheck:" & styleCheckStyle &
" --styleCheck:usages --styleCheck:error" &
" --hint[XDeclaredButNotUsed]:off --hint[Processing]:off " &
path

Expand Down

0 comments on commit 757c6d4

Please sign in to comment.