Skip to content

Commit

Permalink
build: strip zig-built binary via after build hook
Browse files Browse the repository at this point in the history
  • Loading branch information
ee7 committed Oct 27, 2021
1 parent f2e5207 commit 3d210e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions configlet.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ requires "jsony >= 1.0.4"

task test, "Runs the test suite":
exec "nim r ./tests/all_tests.nim"

when defined(linux):
after build:
if existsEnv("GITHUB_ACTIONS") and findExe("zigcc").len > 0:
echo "stripping binary..."
exec "strip -s ./configlet"

0 comments on commit 3d210e7

Please sign in to comment.