skip docs for lib/fusion (docs already run in fusion repo) (#16645)
* run CI docs on koch.nim changes to avoid future regressions * kochdocs: skip lib/fusion
This commit is contained in:
parent
2a426ca8e2
commit
ffb130b59c
2 changed files with 4 additions and 5 deletions
2
.github/workflows/ci_docs.yml
vendored
2
.github/workflows/ci_docs.yml
vendored
|
|
@ -26,7 +26,7 @@ on:
|
||||||
- 'tools/dochack/dochack.nim'
|
- 'tools/dochack/dochack.nim'
|
||||||
- 'tools/kochdocs.nim'
|
- 'tools/kochdocs.nim'
|
||||||
- '.github/workflows/ci_docs.yml'
|
- '.github/workflows/ci_docs.yml'
|
||||||
|
- 'koch.nim'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,7 @@ const
|
||||||
|
|
||||||
var nimExe*: string
|
var nimExe*: string
|
||||||
|
|
||||||
template isJsOnly(file: string): bool =
|
template isJsOnly(file: string): bool = file.isRelativeTo("lib/js")
|
||||||
file.isRelativeTo("lib/js") or
|
|
||||||
file.isRelativeTo("lib/fusion/js")
|
|
||||||
|
|
||||||
proc exe*(f: string): string =
|
proc exe*(f: string): string =
|
||||||
result = addFileExt(f, ExeExt)
|
result = addFileExt(f, ExeExt)
|
||||||
|
|
@ -187,7 +185,8 @@ lib/system/widestrs.nim
|
||||||
""".splitWhitespace()
|
""".splitWhitespace()
|
||||||
|
|
||||||
proc follow(a: PathEntry): bool =
|
proc follow(a: PathEntry): bool =
|
||||||
a.path.lastPathPart notin ["nimcache", "htmldocs", "includes", "deprecated", "genode"]
|
result = a.path.lastPathPart notin ["nimcache", "htmldocs", "includes", "deprecated", "genode"] and
|
||||||
|
not a.path.isRelativeTo("lib/fusion")
|
||||||
for entry in walkDirRecFilter("lib", follow = follow):
|
for entry in walkDirRecFilter("lib", follow = follow):
|
||||||
let a = entry.path
|
let a = entry.path
|
||||||
if entry.kind != pcFile or a.splitFile.ext != ".nim" or
|
if entry.kind != pcFile or a.splitFile.ext != ".nim" or
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue