Skip to content

Commit

Permalink
change workflow to build main too
Browse files Browse the repository at this point in the history
  • Loading branch information
inv2004 committed Sep 6, 2023
1 parent 8b2b70b commit 216f752
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build

on:
push:
branches:
- main
tags:
- '*'

Expand All @@ -15,6 +17,7 @@ jobs:
- uses: jiro4989/setup-nim-action@v1
- run: nim --version && nimble -y -d install && nimble static && nimble staticdebug
- uses: ncipollo/release-action@v1
if: contains(github.ref, 'refs/tags/v')
with:
artifacts: "ttop,ttop-debug"
makeLatest: true
Expand Down
12 changes: 12 additions & 0 deletions bench/benchp.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import ttop/procfs

import tables
import criterion

var cfg = newDefaultConfig()
cfg.budget = 1.0
cfg.minSamples = 10

benchmark cfg:
proc jsonSer() {.measure.} =
assert fullInfo().pidsInfo.len > 5

0 comments on commit 216f752

Please sign in to comment.